Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use @jest/globals instead of @types/jest #74

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/** @type {import('jest').Config} */
const config = {
testEnvironment: 'node',
collectCoverage: true,
injectGlobals: true,
mrazauskas marked this conversation as resolved.
Show resolved Hide resolved
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': ['ts-jest'],
},
Expand Down
12 changes: 1 addition & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"commander": "~12.1.0"
},
"devDependencies": {
"@types/jest": "^29.2.6",
"@jest/globals": "^29.3.1",
shadowspawn marked this conversation as resolved.
Show resolved Hide resolved
"@types/node": "^20.11.7",
"commander": "~12.1.0",
"eslint": "^8.57.0",
Expand Down
1 change: 1 addition & 0 deletions tests/global-createArgument.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, test } from '@jest/globals';
import { createArgument } from '..';

test('when createArgument without description then argument has name', () => {
Expand Down
1 change: 1 addition & 0 deletions tests/global-createCommand.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, test } from '@jest/globals';
import { createCommand } from '..';

test('when createCommand without name then command has empty name', () => {
Expand Down
1 change: 1 addition & 0 deletions tests/global-createOption.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, test } from '@jest/globals';
import { createOption } from '..';

test('when createOption without description then option has flags', () => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"types": ["node", "jest"],
"types": ["node"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
Expand Down
Loading