不要怂,就是干,撸起袖子干!

Commit c845f0bc by Robin Baum Committed by GitHub

feat(tsd-test-setup): add & setup dtslint (#11879)

1 parent 761158cc
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
"chai-spies": "^1.x", "chai-spies": "^1.x",
"cls-hooked": "^4.2.2", "cls-hooked": "^4.2.2",
"cross-env": "^5.2.1", "cross-env": "^5.2.1",
"dtslint": "^2.0.5",
"env-cmd": "^8.0.2", "env-cmd": "^8.0.2",
"esdoc": "^1.1.0", "esdoc": "^1.1.0",
"esdoc-inject-style-plugin": "^1.0.0", "esdoc-inject-style-plugin": "^1.0.0",
...@@ -150,7 +151,7 @@ ...@@ -150,7 +151,7 @@
"test-postgresn": "npm run test-postgres-native", "test-postgresn": "npm run test-postgres-native",
"test-mssql": "cross-env DIALECT=mssql npm test", "test-mssql": "cross-env DIALECT=mssql npm test",
"test-all": "npm run test-mariadb && npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mssql", "test-all": "npm run test-mariadb && npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mssql",
"test-typings": "tsc -b types/tsconfig.json && tsc -b types/test/tsconfig.json", "test-typings": "tsc -b types/tsconfig.json && dtslint --expectOnly types/test",
"cover": "rimraf coverage && npm run teaser && npm run cover-integration && npm run cover-unit && npm run merge-coverage", "cover": "rimraf coverage && npm run teaser && npm run cover-integration && npm run cover-unit && npm run merge-coverage",
"cover-integration": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit \"test/integration/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/integration.info')\"", "cover-integration": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit \"test/integration/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/integration.info')\"",
"cover-unit": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit \"test/unit/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/unit.info')\"", "cover-unit": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit \"test/unit/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/unit.info')\"",
......
// Controls typescript version for testing the types
// TypeScript Version: 3.6
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
"sequelize": ["../"], "sequelize": ["../"],
"sequelize/*": ["../"] "sequelize/*": ["../"]
}, },
"types": ["node"],
"lib": ["es2016"] "lib": ["es2016"]
}, },
"include": ["../index.d.ts", "./**/sequelize.d.ts", "./**/*.ts"] "include": ["../index.d.ts", "./**/sequelize.d.ts", "./**/*.ts"]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!