Skip to content

Commit

Permalink
refactor: fix enum return types and assert for types within tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage authored and Julien-R44 committed Oct 18, 2022
1 parent 7294ef5 commit cc10cb8
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 18,785 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 { specReporter } from '@japa/spec-reporter'
import { runFailedTests } from '@japa/run-failed-tests'
import { processCliArgs, configure, run } from '@japa/runner'
Expand All @@ -20,7 +21,7 @@ configure({
...processCliArgs(process.argv.slice(2)),
...{
files: ['tests/**/*.spec.ts'],
plugins: [assert(), runFailedTests()],
plugins: [assert(), runFailedTests(), expectTypeOf()],
reporters: [specReporter()],
importer: (filePath) => import(filePath),
},
Expand Down
9 changes: 9 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
/*
* @poppinss/validator-lite
*
* (c) Poppinss
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

export * from './src/contracts'
export { schema } from './src/schema/index'
Loading

0 comments on commit cc10cb8

Please sign in to comment.