1
0
Fork 0
mirror of https://codeberg.org/beerbrawl/beerbrawl.git synced 2024-09-22 21:20:52 +02:00

chore(#18): e2e: add typescript support for e2e tests

Signed-off-by: Christoph Heiss <e11907069@student.tuwien.ac.at>
This commit is contained in:
Christoph Heiss 2024-05-29 16:57:21 +02:00 committed by Moritz Kepplinger
parent 58cc06779b
commit e6bf9b6aad
3 changed files with 37 additions and 2 deletions

16
e2e/package-lock.json generated
View file

@ -15,7 +15,8 @@
"mocha-junit-reporter": "2.2.1"
},
"devDependencies": {
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"typescript": "^5.4.5"
}
},
"node_modules/@colors/colors": {
@ -2796,6 +2797,19 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/typescript": {
"version": "5.4.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",

View file

@ -11,7 +11,8 @@
"mocha-junit-reporter": "2.2.1"
},
"devDependencies": {
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",

20
e2e/tsconfig.json Normal file
View file

@ -0,0 +1,20 @@
{
"compileOnSave": false,
"compilerOptions": {
"downlevelIteration": true,
"importHelpers": true,
"outDir": "./dist/out-tsc",
"declaration": false,
"module": "es2022",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2022",
"typeRoots": ["node_modules/@types"],
"useDefineForClassFields": false,
"strict": true,
"lib": ["es2018", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}