Release v0.1.0 #5
7
jest.config.js
Normal file
7
jest.config.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/** @type {import('ts-jest').JestConfigWithTsJest} **/
|
||||||
|
export default {
|
||||||
|
testEnvironment: "node",
|
||||||
|
transform: {
|
||||||
|
"^.+\.tsx?$": ["ts-jest", {}],
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -29,6 +29,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.22.0",
|
"@eslint/js": "^9.22.0",
|
||||||
"@shipgirl/typedoc-plugin-versions": "^0.3.0",
|
"@shipgirl/typedoc-plugin-versions": "^0.3.0",
|
||||||
|
"@types/jest": "^29.5.14",
|
||||||
"@types/node": "^22.13.10",
|
"@types/node": "^22.13.10",
|
||||||
"eslint": "^9.22.0",
|
"eslint": "^9.22.0",
|
||||||
"eslint-config-prettier": "^10.1.1",
|
"eslint-config-prettier": "^10.1.1",
|
||||||
@@ -36,8 +37,10 @@
|
|||||||
"finepack": "^2.12.7",
|
"finepack": "^2.12.7",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
|
"jest": "^29.7.0",
|
||||||
"lint-staged": "^15.4.3",
|
"lint-staged": "^15.4.3",
|
||||||
"prettier": "3.5.3",
|
"prettier": "3.5.3",
|
||||||
|
"ts-jest": "^29.2.6",
|
||||||
"typedoc": "^0.27.9",
|
"typedoc": "^0.27.9",
|
||||||
"typedoc-github-theme": "^0.2.1",
|
"typedoc-github-theme": "^0.2.1",
|
||||||
"typedoc-plugin-coverage": "^3.4.1",
|
"typedoc-plugin-coverage": "^3.4.1",
|
||||||
@@ -60,6 +63,7 @@
|
|||||||
"format:check": "prettier --check .",
|
"format:check": "prettier --check .",
|
||||||
"lint": "eslint --cache .",
|
"lint": "eslint --cache .",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
|
"test": "jest",
|
||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
2243
pnpm-lock.yaml
generated
2243
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
11
tests/index.spec.ts
Normal file
11
tests/index.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import Pushover from "../src";
|
||||||
|
|
||||||
|
test("Pushover is exported", () => {
|
||||||
|
expect(Pushover).toBeDefined();
|
||||||
|
expect(Pushover).toBeInstanceOf(Object);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("Pushover has expected functions", () => {
|
||||||
|
expect(Pushover).toHaveProperty("prototype.constructor");
|
||||||
|
expect(Pushover).toHaveProperty("prototype.send");
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user