Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
module.exports = {
preset: "ts-jest/presets/js-with-ts",
testEnvironment: "node",
};
{
"scripts": {
"build": "npm run tsc-esm && cheminfo-build --entry lib-esm/index.js --root XYParser",
"build-doc": "cheminfo doc",
"check-types": "tsc --noEmit",
"clean": "rimraf lib lib-esm",
"eslint": "eslint src --config eslint.config.mjs",
"eslint-fix": "eslint src --config eslint.config.mjs --fix",
"prepack": "npm run tsc",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types",
"test-only": "jest --coverage",
"tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm",
"tsc-cjs": "tsc --project tsconfig.cjs.json",
"tsc-esm": "tsc --project tsconfig.esm.json"
}
}
Loading