Skip to content

Commit

Permalink
test: add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tknickman committed Feb 7, 2024
1 parent 8291243 commit b111021
Show file tree
Hide file tree
Showing 8 changed files with 392 additions and 40 deletions.
File renamed without changes.
10 changes: 10 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest/presets/js-with-ts",
testEnvironment: "node",
modulePathIgnorePatterns: ["<rootDir>/node_modules", "<rootDir>/dist"],
transformIgnorePatterns: ["/node_modules/(?!(ansi-regex)/)"],
};

export default config;
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dirs-next",
"version": "0.0.1-canary.0",
"version": "0.0.1-canary.1",
"description": "A tiny library with a minimal API that provides the platform-specific, user-accessible locations for retrieving and storing configuration",
"keywords": [
"dirs",
Expand All @@ -22,13 +22,16 @@
"scripts": {
"build": "tsup",
"format": "prettier --write .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest",
"release": "pnpm format && pnpm test && pnpm build && pnpm publish"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.16",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
}
Expand Down
Loading

0 comments on commit b111021

Please sign in to comment.