mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 20:17:58 +08:00
3d4f7adaaf
* fix(module:overlay): move postion calculation to js fixes #1836 * docs: TriggerBoundaryAdjustMode explanation * docs: select & datepicker got BoundaryAdjustmetMode cleanup * test: fixes optimization & cleanup * fix(module:overlay): recalculate overlay position when trigger resizes * Minor clean-up * fix(module:overlay): wait for Show to finish in Hide * fix: prevent vertical scrollbar on overlay adding * fix: extract waiting function * fix: overlay not to repostion when trigger vanishes (menu issue) * fix: scroll adjustment for position: fixed * fix: on menu mode change, keep * merge conflict fix * fix: nominal calculation reset on failed adjustment * fix: bugs * test: exclude log method from test coverage in overlay.ts
46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
{
|
|
"version": "1.0.0",
|
|
"name": "antblazor.js-ts.tests",
|
|
"private": true,
|
|
"scripts": {
|
|
"//": [
|
|
"(comment) 1. test-ts will run all tests in './tests' folder",
|
|
"(comment) 2. test-one is meant to run test for a single file (but could be multiple) that is provided as a parameter. ",
|
|
" Example: 'npm run test-one tests/modules/components/overlay.test.ts' will run tests in file 'overlay.test.ts'",
|
|
"(comment) 3. test-cov are run during CI - will generate coverage report. "
|
|
],
|
|
"test-ts": "mocha -r ts-node/register -r ./tests/mochaConfig.js 'tests/**/*.ts'",
|
|
"test-one": "mocha -r ts-node/register -r ./tests/mochaConfig.js ",
|
|
"pretest-cov": "tsc -p . ",
|
|
"test-cov": "nyc mocha -r ts-node/register -r source-map-support/register -r ./tests/mochaConfig.js --recursive 'tests/**/*.ts'",
|
|
"posttest-cov": "nyc report --reporter=cobertura"
|
|
},
|
|
"devDependencies": {
|
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
"@types/chai": "^4.2.21",
|
|
"@types/mocha": "^9.0.0",
|
|
"@types/node": "^16.3.2",
|
|
"chai": "^4.3.4",
|
|
"codecov": "^3.8.3",
|
|
"jsdom": "^11.12.0",
|
|
"mocha": "8.3.0",
|
|
"mocha-jsdom": "^2.0.0",
|
|
"mocha-param": "^2.0.1",
|
|
"nyc": "^15.1.0",
|
|
"rewire": "^5.0.0",
|
|
"sinon": "^11.1.2",
|
|
"source-map-support": "^0.5.19",
|
|
"ts-node": "^10.1.0",
|
|
"typescript": "^4.3.5"
|
|
},
|
|
"nyc": {
|
|
"extends": "@istanbuljs/nyc-config-typescript",
|
|
"all": true,
|
|
"cwd": "../../",
|
|
"exclude": [
|
|
"**/*.test.ts",
|
|
"**/*.js"
|
|
]
|
|
}
|
|
}
|