Skip to content

Commit 2bf1c23

Browse files
committed
jest->vitest + ESM
1 parent 00e0f30 commit 2bf1c23

File tree

5 files changed

+511
-2650
lines changed

5 files changed

+511
-2650
lines changed

jest.config.js

-4
This file was deleted.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@electron/notarize",
33
"version": "0.0.0-development",
44
"description": "Notarize your Electron app",
5-
"main": "lib/index.js",
5+
"type": "module",
6+
"exports": "./lib/index.js",
67
"typings": "lib/index.d.ts",
78
"author": "Samuel Attard",
89
"license": "MIT",
@@ -20,7 +21,7 @@
2021
"lint": "prettier --check \"src/**/*.ts\"",
2122
"prettier:write": "prettier --write \"src/**/*.ts\"",
2223
"prepare": "yarn build",
23-
"test": "jest"
24+
"test": "vitest"
2425
},
2526
"files": [
2627
"lib"
@@ -32,16 +33,15 @@
3233
"provenance": true
3334
},
3435
"devDependencies": {
36+
"@tsconfig/node22": "^22.0.0",
3537
"@types/debug": "^4.1.12",
36-
"@types/jest": "^29.0.0",
3738
"@types/node": "~22.10.7",
3839
"@types/promise-retry": "^1.1.3",
39-
"jest": "^29.0.0",
4040
"prettier": "^3.4.2",
41-
"ts-jest": "^29.0.0",
4241
"typedoc": "~0.25.13",
4342
"typedoc-plugin-missing-exports": "^2.2.0",
44-
"typescript": "~5.4.5"
43+
"typescript": "~5.4.5",
44+
"vitest": "^3.0.8"
4545
},
4646
"dependencies": {
4747
"debug": "^4.4.0",

test/helpers.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, test } from 'vitest';
12
import { parseNotarizationInfo } from '../src/helpers';
23

34
describe('helpers', () => {

tsconfig.json

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es2015",
5-
"outDir": "lib",
6-
"sourceMap": true,
7-
"rootDir": "src",
8-
"experimentalDecorators": true,
9-
"strictNullChecks": true,
10-
"noUnusedLocals": true,
11-
"noImplicitThis": true,
12-
"noImplicitAny": true,
13-
"declaration": true,
14-
"skipDefaultLibCheck": true,
15-
"skipLibCheck": true,
16-
"esModuleInterop": true
17-
},
18-
"include": [
19-
"src/**/*"
20-
],
2+
"extends": "@tsconfig/node22/tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": true,
5+
"outDir": "lib",
6+
"types": ["node"],
7+
"declaration": true
8+
},
9+
"include": ["src"]
2110
}

0 commit comments

Comments
 (0)