mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 17:59:25 +00:00
Added jest testing framework
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
"es2021": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:jest/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest"
|
||||
},
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,7 @@
|
||||
static/assets/diagrams/
|
||||
|
||||
coverage/
|
||||
|
||||
node_modules/
|
||||
|
||||
config/*.json
|
||||
|
||||
11
jest.config.js
Normal file
11
jest.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* For a detailed explanation regarding each configuration property, visit:
|
||||
* https://jestjs.io/docs/configuration
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
collectCoverage: true,
|
||||
coverageDirectory: 'coverage',
|
||||
coverageProvider: 'v8'
|
||||
};
|
||||
6777
package-lock.json
generated
6777
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "jest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -21,6 +21,8 @@
|
||||
"mysql2": "^2.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.6.0"
|
||||
"eslint": "^8.6.0",
|
||||
"eslint-plugin-jest": "^25.7.0",
|
||||
"jest": "^27.4.7"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user