mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-24 17:30:59 -05:00
Setup Jest
This commit is contained in:
parent
e2628b7f68
commit
98b2172a77
4 changed files with 3687 additions and 0 deletions
6
babel.config.js
Normal file
6
babel.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
["@babel/preset-env", { targets: { node: "current" } }],
|
||||
"@babel/preset-typescript",
|
||||
]
|
||||
};
|
7
jest.config.js
Normal file
7
jest.config.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports = {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ["js", "ts"],
|
||||
testMatch: ["**/*.test.ts"],
|
||||
transform: { ".(t|j)s$": "babel-jest" },
|
||||
verbose: true
|
||||
};
|
3668
package-lock.json
generated
3668
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,8 @@
|
|||
"scripts": {
|
||||
"build": "ncc build --source-map --license license.txt",
|
||||
"test:lint": "eslint src/** && eslint test/**",
|
||||
"test:unit": "jest",
|
||||
"test": "npm run test:lint && npm run test:unit"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -25,11 +27,15 @@
|
|||
},
|
||||
"homepage": "https://github.com/Kir-Antipov/mc-publish#readme",
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.15.6",
|
||||
"@babel/preset-typescript": "^7.15.0",
|
||||
"@types/node": "^16.10.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
||||
"@typescript-eslint/parser": "^4.31.2",
|
||||
"@vercel/ncc": "^0.31.1",
|
||||
"babel-jest": "^27.2.2",
|
||||
"eslint": "^7.32.0",
|
||||
"jest": "^27.2.2",
|
||||
"typescript": "^4.4.3"
|
||||
},
|
||||
"dependencies": {}
|
||||
|
|
Loading…
Reference in a new issue