mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-23 22:15:52 +00:00
Tests: TS: add back missing type checking
tsx does not run any type checking, hence a separate tsc step is needed . Also, fix resulting type issue caused by external lib types.
This commit is contained in:
parent
5027bcd0eb
commit
c5f9ecf3e4
6
package-lock.json
generated
6
package-lock.json
generated
@ -1944,9 +1944,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/linkify-it": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
|
||||
"integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
|
||||
"version": "3.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.5.tgz",
|
||||
"integrity": "sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
"build-test": "npm run build -- --config-build-only=test",
|
||||
"prepare": "npm run build",
|
||||
"test": "mocha --timeout 120000 test/unittests.js",
|
||||
"test-type-definitions": "tsx test/typescript/definitions.ts",
|
||||
"test-type-definitions": "tsc --project test/typescript/tsconfig.test.json && tsx test/typescript/definitions.ts",
|
||||
"benchmark-time": "node test/benchmarks/time.js",
|
||||
"benchmark-memory-usage": "node test/benchmarks/memory_usage.js",
|
||||
"prebrowsertest": "npm run build-test",
|
||||
|
||||
7
test/typescript/tsconfig.test.json
Normal file
7
test/typescript/tsconfig.test.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true, // tested by tsx
|
||||
},
|
||||
"files": ["definitions.ts"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user