removed jest testing framework and used mocha/chai instead which does not interfere with the regular build process

build-validation
David Tookey 5 years ago
parent 758d774258
commit 9a282bc982

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

9907
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" "url": "git://github.com/username/repository.git"
}, },
"scripts": { "scripts": {
"test": "jest", "test": "mocha -r ts-node/register tests/**/*-test.ts",
"clean": "gulp clean", "clean": "gulp clean",
"build": "gulp", "build": "gulp",
"start": "npm run build && electron ./build", "start": "npm run build && electron ./build",
@ -42,15 +42,21 @@
"bootstrap": "^4.5.3" "bootstrap": "^4.5.3"
}, },
"devDependencies": { "devDependencies": {
"@types/jquery": "^3.5.1",
"@types/mocha": "^8.0.3",
"@types/chai": "^4.2.14",
"devtron": "^1.4.0", "devtron": "^1.4.0",
"electron": "^7.2.4", "electron": "^7.2.4",
"electron-settings": "^3.0.7", "electron-settings": "^3.0.7",
"electron-shortcut-normalizer": "^1.0.0", "electron-shortcut-normalizer": "^1.0.0",
"electron-packager": "^15.1.0", "electron-packager": "^15.1.0",
"@types/jquery": "^3.5.1",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-typescript": "^6.0.0-alpha.1", "gulp-typescript": "^6.0.0-alpha.1",
"gulp-exec": "^5.0.0", "gulp-exec": "^5.0.0",
"del": "^6.0.0" "del": "^6.0.0",
"chai": "^4.2.0",
"mocha": "^8.2.0",
"nyc": "^15.1.0",
"ts-node": "^9.0.0"
} }
} }

@ -0,0 +1,5 @@
describe('default', ()=>{
it('print', ()=>{
console.log("okay?")
})
})
Loading…
Cancel
Save