tests tsconfig

This commit is contained in:
antelle 2021-05-29 22:12:28 +02:00
parent 6f068ebf18
commit 500eaa4569
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 16 additions and 1 deletions

View File

@ -126,7 +126,7 @@
},
"scripts": {
"start": "grunt",
"test": "mocha --require ts-node/register,tsconfig-paths/register,test/init.ts --recursive --reporter spec 'test/**/*.spec.ts'",
"test": "cross-env TS_NODE_PROJECT=tsconfig.tests.json mocha --require ts-node/register,tsconfig-paths/register,test/init.ts --recursive --reporter spec 'test/**/*.spec.ts'",
"eslint": "grunt eslint",
"build-beta": "grunt --beta && cp dist/index.html ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master",
"electron": "cross-env KEEWEB_IS_PORTABLE=0 ELECTRON_DISABLE_SECURITY_WARNINGS=1 KEEWEB_EMULATE_HARDWARE_ENCRYPTION=persistent KEEWEB_HTML_PATH=http://localhost:8085 electron desktop --no-sandbox",

15
tsconfig.tests.json Normal file
View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"preserveConstEnums": true,
"sourceMap": true,
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
"baseUrl": "app/scripts",
"noEmitOnError": true,
"esModuleInterop": true
},
"include": ["app/scripts/**/*", "test/**/*.ts"]
}