Skip to content

Commit 03165ed

Browse files
committed
build: replace jest with vitest
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
1 parent e4fffca commit 03165ed

3 files changed

Lines changed: 61 additions & 0 deletions

File tree

packages/ruleset/vitest.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
globals: true,
6+
environment: 'node',
7+
coverage: {
8+
enabled: true,
9+
reporter: ['text', 'json', 'html'],
10+
reportsDirectory: './coverage/',
11+
},
12+
},
13+
resolve: {
14+
alias: {
15+
'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs',
16+
'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/',
17+
},
18+
},
19+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
globals: true,
6+
environment: 'node',
7+
coverage: {
8+
enabled: true,
9+
reporter: ['text', 'json', 'html'],
10+
reportsDirectory: './coverage/',
11+
},
12+
},
13+
resolve: {
14+
alias: {
15+
'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs',
16+
'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/',
17+
},
18+
},
19+
});
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
globals: true,
6+
environment: 'node',
7+
coverage: {
8+
enabled: true,
9+
reporter: ['text', 'json', 'html'],
10+
reportsDirectory: './coverage/',
11+
},
12+
},
13+
resolve: {
14+
alias: {
15+
'nimma/legacy': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs',
16+
'nimma/fallbacks': '../../node_modules/@stoplight/spectral-core/node_modules/nimma/dist/legacy/cjs/fallbacks/',
17+
'@stoplight/spectral-ruleset-bundler/presets/node': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/presets/node',
18+
'@stoplight/spectral-ruleset-bundler/plugins/stdin': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/stdin',
19+
'@stoplight/spectral-ruleset-bundler/plugins/builtins': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/builtins',
20+
'@stoplight/spectral-ruleset-bundler/plugins/commonjs': '../../node_modules/@stoplight/spectral-ruleset-bundler/dist/plugins/commonjs',
21+
},
22+
},
23+
});

0 commit comments

Comments
 (0)