added testing harness for typescript to project

build-validation
David Tookey 5 years ago
parent 93bb0d461d
commit e53ba16f44

@ -0,0 +1,6 @@
module.exports = {
transform: {'^.+\.ts?$': 'ts-jest'},
testEnvironment: 'node',
testRegex: '/tests/.*\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
}

8943
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -9,7 +9,7 @@
"url": "git://github.com/username/repository.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"clean": "gulp clean",
"build": "gulp",
"start": "npm run build && electron ./build",
@ -51,6 +51,9 @@
"gulp": "^4.0.2",
"gulp-typescript": "^6.0.0-alpha.1",
"gulp-exec": "^5.0.0",
"del": "^6.0.0"
"del": "^6.0.0",
"jest": "^26.6.1",
"ts-jest": "^26.4.2",
"@types/jest": "^26.0.15"
}
}

Loading…
Cancel
Save