Add jest and puppeteer for testing

This commit is contained in:
Peter Maquiran
2021-07-10 08:45:51 +01:00
parent 85a6d175dc
commit 451cfaa229
15 changed files with 7372 additions and 44 deletions
+15
View File
@@ -0,0 +1,15 @@
module.exports = {
"roots": [
"<rootDir>/test"
],
"testMatch": [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
// "globalSetup": "<rootDir>/test/setupJest.ts",
preset: 'jest-puppeteer',
// setupFilesAfterEnv: "<rootDir>/test/setupJest.ts",
}