fix: fixes jest globals type error

This commit makes sure that no '@jest/globals' types missing error is
thrown when working in vscode.
This commit is contained in:
Rick Staa 2022-07-15 09:37:48 +02:00
parent 569d785639
commit 922b4cbaff
3 changed files with 8 additions and 3 deletions

7
.gitignore vendored
View File

@ -96,4 +96,9 @@ Thumbs.db
# Ignore built ts files
__tests__/runner/*
lib/**/*
lib/**/*
# IDE files
.idea
.vscode
*.code-workspace

View File

@ -2,7 +2,6 @@ import {wait} from '../src/wait'
import * as process from 'process'
import * as cp from 'child_process'
import * as path from 'path'
import {expect, test} from '@jest/globals'
test('throws invalid number', async () => {
const input = parseInt('foo', 10)

View File

@ -28,10 +28,11 @@
"@actions/core": "^1.6.0"
},
"devDependencies": {
"@types/jest": "^27.0.0",
"@types/node": "^16.10.5",
"@typescript-eslint/parser": "^5.8.1",
"@vercel/ncc": "^0.31.1",
"eslint": "^7.32.0",
"eslint": "^8.0.1",
"eslint-plugin-github": "^4.3.2",
"eslint-plugin-jest": "^25.3.2",
"jest": "^27.2.5",