Skip to content

Commit 3e2971c

Browse files
chore: update snapshots
1 parent 6e2241a commit 3e2971c

File tree

1 file changed

+8
-107
lines changed

1 file changed

+8
-107
lines changed

packages/nx-plugin/src/generators/preset/__snapshots__/generator.spec.ts.snap

Lines changed: 8 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -18,65 +18,6 @@ exports[`preset generator > should match index.html 1`] = `
1818
"
1919
`;
2020

21-
exports[`preset generator > should match index.html 2`] = `
22-
"/// <reference types="vitest" />
23-
24-
import analog from '@analogjs/platform';
25-
import { defineConfig } from 'vite';
26-
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
27-
28-
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
29-
import tailwindcss from '@tailwindcss/vite';
30-
31-
// https://vitejs.dev/config/
32-
export default defineConfig(({ mode }) => {
33-
return {
34-
root: __dirname,
35-
cacheDir: \`../node_modules/.vite\`,
36-
build: {
37-
outDir: '../dist/./my-app/client',
38-
reportCompressedSize: true,
39-
target: ['es2020'],
40-
},
41-
server: {
42-
fs: {
43-
allow: ['.'],
44-
},
45-
},
46-
plugins: [tailwindcss(), analog(), nxViteTsPaths()],
47-
test: {
48-
globals: true,
49-
environment: 'jsdom',
50-
setupFiles: ['src/test-setup.ts'],
51-
include: ['**/*.spec.ts'],
52-
reporters: ['default'],
53-
},
54-
define: {
55-
'import.meta.vitest': mode !== 'production',
56-
},
57-
};
58-
});
59-
"
60-
`;
61-
62-
exports[`preset generator > should match index.html 3`] = `
63-
"<!doctype html>
64-
<html lang="en">
65-
<head>
66-
<meta charset="utf-8" />
67-
<title>my-app</title>
68-
<base href="/" />
69-
<meta name="viewport" content="width=device-width, initial-scale=1" />
70-
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
71-
</head>
72-
<body>
73-
<app-root></app-root>
74-
<script type="module" src="/my-app/src/main.ts"></script>
75-
</body>
76-
</html>
77-
"
78-
`;
79-
8021
exports[`preset generator > should match project.json 1`] = `
8122
"{
8223
"name": "my-app",
@@ -124,7 +65,7 @@ exports[`preset generator > should match project.json 1`] = `
12465
}
12566
},
12667
"extract-i18n": {
127-
"executor": "@angular-devkit/build-angular:extract-i18n",
68+
"executor": "@angular/build:extract-i18n",
12869
"options": {
12970
"buildTarget": "my-app:build"
13071
}
@@ -151,17 +92,18 @@ exports[`preset generator > should match project.json 1`] = `
15192
`;
15293

15394
exports[`preset generator > should match src/test-setup.ts 1`] = `
154-
"import '@analogjs/vitest-angular/setup-zone';
95+
"import '@angular/compiler';
96+
import '@analogjs/vitest-angular/setup-zone';
15597
15698
import {
157-
BrowserDynamicTestingModule,
158-
platformBrowserDynamicTesting,
159-
} from '@angular/platform-browser-dynamic/testing';
99+
BrowserTestingModule,
100+
platformBrowserTesting,
101+
} from '@angular/platform-browser/testing';
160102
import { getTestBed } from '@angular/core/testing';
161103
162104
getTestBed().initTestEnvironment(
163-
BrowserDynamicTestingModule,
164-
platformBrowserDynamicTesting(),
105+
BrowserTestingModule,
106+
platformBrowserTesting(),
165107
);
166108
"
167109
`;
@@ -206,44 +148,3 @@ export default defineConfig(({ mode }) => {
206148
});
207149
"
208150
`;
209-
210-
exports[`preset generator > should match vite.config.ts 2`] = `
211-
"/// <reference types="vitest" />
212-
213-
import analog from '@analogjs/platform';
214-
import { defineConfig } from 'vite';
215-
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
216-
217-
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
218-
import tailwindcss from '@tailwindcss/vite';
219-
220-
// https://vitejs.dev/config/
221-
export default defineConfig(({ mode }) => {
222-
return {
223-
root: __dirname,
224-
cacheDir: \`../node_modules/.vite\`,
225-
build: {
226-
outDir: '../dist/./my-app/client',
227-
reportCompressedSize: true,
228-
target: ['es2020'],
229-
},
230-
server: {
231-
fs: {
232-
allow: ['.'],
233-
},
234-
},
235-
plugins: [tailwindcss(), analog(), nxViteTsPaths()],
236-
test: {
237-
globals: true,
238-
environment: 'jsdom',
239-
setupFiles: ['src/test-setup.ts'],
240-
include: ['**/*.spec.ts'],
241-
reporters: ['default'],
242-
},
243-
define: {
244-
'import.meta.vitest': mode !== 'production',
245-
},
246-
};
247-
});
248-
"
249-
`;

0 commit comments

Comments
 (0)