Skip to content

Commit

Permalink
build: add jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidurber committed Dec 21, 2021
1 parent 1a6cfc2 commit f9c348c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
"dev": "obsidian-plugin dev src/main.ts",
"build": "obsidian-plugin build src/main.ts -o .",
"release:dry": "standard-version -t '' --dry-run",
"release": "standard-version -t '' -a"
"release": "standard-version -t '' -a",
"test": "jest",
"test:watch": "jest --watch"
},
"devDependencies": {
"@types/jest": "^27.0.3",
"detect-indent": "^6.1.0",
"detect-newline": "^3.1.0",
"jest": "^27.4.5",
"obsidian": "obsidianmd/obsidian-api",
"obsidian-plugin-cli": "^0.8.0",
"standard-version": "^9.3.1",
"stringify-package": "^1.0.1",
"typescript": "^4.1.5"
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
}
}

0 comments on commit f9c348c

Please sign in to comment.