mirror of
https://github.com/iconify/iconify.git
synced 2025-01-08 07:48:29 +00:00
Remove CommonJS tests with Vitest in core
This commit is contained in:
parent
20596bef1d
commit
6f569401d7
@ -20,9 +20,7 @@
|
|||||||
"test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
|
"test:jest-cjs": "jest --clearCache --config=jest.config.cjs && jest --runInBand --config=jest.config.cjs",
|
||||||
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
|
"test:jest-esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --clearCache --config=jest.config.mjs && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand --config=jest.config.mjs",
|
||||||
"test": "npm run test:jest-cjs && npm run test:jest-esm",
|
"test": "npm run test:jest-cjs && npm run test:jest-esm",
|
||||||
"vitest:cjs": "vitest --config vitest.config.cjs",
|
"vitest": "vitest --config vitest.config.mjs"
|
||||||
"vitest:esm": "vitest --config vitest.config.mjs",
|
|
||||||
"vitest": "npm run vitest:cjs && npm run vitest:esm"
|
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
const { defineConfig } = require('vitest/config');
|
|
||||||
|
|
||||||
module.exports = defineConfig({
|
|
||||||
resolve: {
|
|
||||||
mainFields: ['require'],
|
|
||||||
extensions: ['.cjs'],
|
|
||||||
},
|
|
||||||
test: {
|
|
||||||
globals: true,
|
|
||||||
isolate: false,
|
|
||||||
watch: false,
|
|
||||||
include: ['**/tests/**/*-test.ts'],
|
|
||||||
},
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user