Skip to content

Commit 9a9df8f

Browse files
author
Andrew Kazakou
committed
Move TypeScript unit tests up to test/typescript directory
1 parent 463bf67 commit 9a9df8f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
},
7575
"globals": {
7676
"ts-jest": {
77-
"tsConfig": "test/typescript/full/tsconfig.json",
77+
"tsConfig": "test/typescript/tsconfig.json",
7878
"diagnostics": true
7979
}
8080
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/// <reference path="../../../index.d.ts" /> // here we make a reference to exists module definition
1+
/// <reference path="../../index.d.ts" /> // here we make a reference to exists module definition
22
import ValidatorType from 'fastest-validator'; // here we importing type definition of default export
33

4-
const Validator: typeof ValidatorType = require('../../../index'); // here we importing real Validator Constructor
4+
const Validator: typeof ValidatorType = require('../../index'); // here we importing real Validator Constructor
55

66
describe('Typescript Definitions', () => {
77
it('should compile validator', async () => {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"strictFunctionTypes": false,
1717
"preserveConstEnums": true,
1818
"suppressImplicitAnyIndexErrors": true,
19-
"outDir": "./out",
2019
"baseUrl": ".",
2120
"allowJs": true
2221
},

0 commit comments

Comments
 (0)