Skip to content

Commit 9711df2

Browse files
Run all tests
1 parent a01388b commit 9711df2

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"prepublishOnly": "npm run build",
2020
"pretest": "npm run build && cpy \"./**/**\" \"../../../dist/test/fixtures/\" --parents --cwd=source/test/fixtures",
21-
"test": "npm run lint && ava dist/test/test.js",
21+
"test": "npm run lint && ava",
2222
"build": "npm run clean && tsc && chmod +x dist/cli.js",
2323
"clean": "del-cli dist",
2424
"lint": "tslint -p . --format stylish"
@@ -48,6 +48,7 @@
4848
"update-notifier": "^4.1.0"
4949
},
5050
"devDependencies": {
51+
"@ava/typescript": "^1.1.1",
5152
"@types/node": "^14.0.0",
5253
"@types/react": "^16.9.2",
5354
"@types/update-notifier": "^4.1.0",
@@ -60,5 +61,17 @@
6061
"tslint": "^5.11.0",
6162
"tslint-xo": "^0.9.0",
6263
"typescript": "^3.6.3"
64+
},
65+
"ava": {
66+
"timeout": "2m",
67+
"files": [
68+
"source/test/**/*",
69+
"!source/test/fixtures/**/*"
70+
],
71+
"typescript": {
72+
"rewritePaths": {
73+
"source/": "dist/"
74+
}
75+
}
6376
}
6477
}

source/test/identicality.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test('identical', async t => {
77
const diagnostics = await tsd({cwd: path.join(__dirname, 'fixtures/identicality/identical')});
88

99
verify(t, diagnostics, [
10-
[7, 0, 'error', 'Parameter type `any` is declared too wide for argument type `number`.'],
10+
[7, 0, 'error', 'Parameter type `any` is not identical to argument type `number`.'],
1111
[8, 0, 'error', 'Parameter type `string | number` is declared too wide for argument type `string`.']
1212
]);
1313
});

0 commit comments

Comments
 (0)