mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Added settings for jest
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -3,5 +3,7 @@
|
||||
"editor.formatOnSave": true,
|
||||
"editor.insertSpaces": false,
|
||||
"editor.smoothScrolling": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
|
||||
"jest.jestCommandLine": "node --no-warnings ./node_modules/.bin/jest -c jest.config.cjs --runInBand --silent"
|
||||
}
|
||||
|
||||
11
jest.config.cjs
Normal file
11
jest.config.cjs
Normal file
@@ -0,0 +1,11 @@
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @type {import("jest").Config}
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
moduleFileExtensions: ["js", "mjs", "cjs"],
|
||||
testEnvironment: "node",
|
||||
testMatch: ["**/specs/**/*.spec.cjs"],
|
||||
};
|
||||
@@ -9,7 +9,7 @@
|
||||
"build:src": "rimraf lib && npx tsc -p tsconfig.dist.json",
|
||||
"build:spec": "rimraf \"./spec/*.!(ts)\" && npx tsc -p tsconfig.spec.json",
|
||||
"prepublishOnly": "npm run build",
|
||||
"test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest -c jest.config.mjs --silent"
|
||||
"test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest -c jest.config.cjs --silent"
|
||||
},
|
||||
"author": "Alexander Patrick Cerutti",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in New Issue
Block a user