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', 'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/eslint-recommended',
'prettier', 'prettier',
'plugin:cypress/recommended',
], ],
// required to lint *.vue files // required to lint *.vue files
plugins: ['vue', '@typescript-eslint'], plugins: ['vue', '@typescript-eslint'],

View File

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

View File

@ -110,8 +110,8 @@
"semver": "^5.3.0", "semver": "^5.3.0",
"shelljs": "^0.8.5", "shelljs": "^0.8.5",
"survey-knockout": "^1.9.41", "survey-knockout": "^1.9.41",
"typescript": "^4.6.4",
"ts-loader": "^8.3.0", "ts-loader": "^8.3.0",
"typescript": "^4.6.4",
"uploadcare-widget": "^3.6.0", "uploadcare-widget": "^3.6.0",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
"vee-validate": "^4.5.10", "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": { "files": [],
"allowJs": true, "references": [
"checkJs": false, {
"resolveJsonModule": true, "path": "./tsconfig.app.json"
"lib": ["es2017", "dom"],
"target": "es5",
"module": "es2022",
"strict": true,
"moduleResolution": "node",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
}
}, },
"exclude": ["./cypress"] {
"path": "./tsconfig.cypress.json"
}
]
} }