Update configs for component tests

This commit is contained in:
Ramon Wenger 2023-05-10 12:19:48 +02:00
parent 1428634440
commit 433f10629a
6 changed files with 45 additions and 21 deletions

View File

@ -20,6 +20,7 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'prettier',
'plugin:cypress/recommended',
],
// required to lint *.vue files
plugins: ['vue', '@typescript-eslint'],

View File

@ -5984,9 +5984,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001425",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001425.tgz",
"integrity": "sha512-/pzFv0OmNG6W0ym80P3NtapU0QEiDS3VuYAZMGoLLqiC7f6FJFe1MjpQDREGApeenD9wloeytmVDj+JLXPC6qw==",
"version": "1.0.30001486",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz",
"integrity": "sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==",
"funding": [
{
"type": "opencollective",
@ -5995,6 +5995,10 @@
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
},
@ -23827,9 +23831,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001425",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001425.tgz",
"integrity": "sha512-/pzFv0OmNG6W0ym80P3NtapU0QEiDS3VuYAZMGoLLqiC7f6FJFe1MjpQDREGApeenD9wloeytmVDj+JLXPC6qw=="
"version": "1.0.30001486",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz",
"integrity": "sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg=="
},
"caseless": {
"version": "0.12.0",

View File

@ -110,8 +110,8 @@
"semver": "^5.3.0",
"shelljs": "^0.8.5",
"survey-knockout": "^1.9.41",
"typescript": "^4.6.4",
"ts-loader": "^8.3.0",
"typescript": "^4.6.4",
"uploadcare-widget": "^3.6.0",
"url-loader": "^4.1.1",
"vee-validate": "^4.5.10",

17
client/tsconfig.app.json Normal file
View File

@ -0,0 +1,17 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"resolveJsonModule": true,
"lib": ["es2017", "dom"],
"target": "es5",
"module": "es2022",
"strict": true,
"moduleResolution": "node",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
}
},
"exclude": ["./cypress"]
}

View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"lib": ["es5", "dom"],
"target": "es5",
"types": ["cyress", "node"]
},
"include": ["src/**/*.cy.js"]
}

View File

@ -1,17 +1,11 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"resolveJsonModule": true,
"lib": ["es2017", "dom"],
"target": "es5",
"module": "es2022",
"strict": true,
"moduleResolution": "node",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
}
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
"exclude": ["./cypress"]
{
"path": "./tsconfig.cypress.json"
}
]
}