Skip to content

Commit 27e8b72

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
docs: remove test setup for sandbox app
1 parent 735b13e commit 27e8b72

File tree

8 files changed

+83
-52
lines changed

8 files changed

+83
-52
lines changed

apps/sandbox/project.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@
5757
"options": {
5858
"lintFilePatterns": ["apps/sandbox/**/*.ts", "apps/sandbox/**/*.html"]
5959
}
60-
},
61-
"test": {
62-
"executor": "@nx/vite:test",
63-
"outputs": ["apps/sandbox/coverage"]
6460
}
6561
},
6662
"tags": []

apps/sandbox/src/app/app.component.spec.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/sandbox/src/test-setup.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/sandbox/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
{
88
"path": "./tsconfig.app.json"
99
},
10-
{
11-
"path": "./tsconfig.spec.json"
12-
},
1310
{
1411
"path": "./tsconfig.editor.json"
1512
}

apps/sandbox/tsconfig.spec.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/sandbox/vite.config.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import analog from '@analogjs/platform';
44
import { visualizer } from 'rollup-plugin-visualizer';
55
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
6+
import glslify from 'vite-plugin-glslify';
67
import tsConfigPaths from 'vite-tsconfig-paths';
78

89
// https://vitejs.dev/config/
@@ -17,12 +18,13 @@ export default defineConfig(({ mode }) => {
1718
target: ['es2020'],
1819
},
1920
plugins: [
21+
glslify(),
2022
analog({
2123
ssrBuildDir: '../../dist/apps/sandbox/ssr',
2224
entryServer: 'apps/sandbox/src/main.server.ts',
2325
vite: {
2426
inlineStylesExtension: 'css',
25-
tsconfig: mode === 'test' ? 'apps/sandbox/tsconfig.spec.json' : 'apps/sandbox/tsconfig.app.json',
27+
tsconfig: 'apps/sandbox/tsconfig.app.json',
2628
},
2729
nitro: {
2830
rootDir: 'apps/sandbox',
@@ -44,17 +46,5 @@ export default defineConfig(({ mode }) => {
4446
visualizer() as Plugin,
4547
splitVendorChunkPlugin(),
4648
],
47-
test: {
48-
globals: true,
49-
environment: 'jsdom',
50-
setupFiles: ['src/test-setup.ts'],
51-
include: ['**/*.spec.ts'],
52-
cache: {
53-
dir: `../../node_modules/.vitest`,
54-
},
55-
},
56-
define: {
57-
'import.meta.vitest': mode !== 'production',
58-
},
5949
};
6050
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"ts-node": "10.9.1",
7373
"typescript": "5.0.4",
7474
"vite": "4.3.8",
75+
"vite-plugin-glslify": "^2.0.1",
7576
"vite-tsconfig-paths": "4.2.0",
7677
"vitest": "0.31.1"
7778
},

pnpm-lock.yaml

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)