Skip to content

Commit

Permalink
test: add expect-type plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 29, 2023
1 parent b2fddec commit e397649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { assert } from '@japa/assert'
import { expectTypeOf } from '@japa/expect-type'
import { processCLIArgs, configure, run } from '@japa/runner'

/*
Expand All @@ -17,7 +18,7 @@ import { processCLIArgs, configure, run } from '@japa/runner'
processCLIArgs(process.argv.slice(2))
configure({
files: ['tests/**/*.spec.ts'],
plugins: [assert()],
plugins: [assert(), expectTypeOf()],
})

/*
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"pretest": "npm run lint",
"test": "c8 npm run quick:test",
"clean": "del-cli build",
"typecheck": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"release": "np",
Expand All @@ -41,6 +41,7 @@
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@japa/assert": "^2.0.0-1",
"@japa/expect-type": "^2.0.0-0",
"@japa/runner": "^3.0.0-2",
"@swc/core": "^1.3.67",
"@types/node": "^20.3.2",
Expand Down

0 comments on commit e397649

Please sign in to comment.