Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/improve doc processor unit tests robustness #173

Merged
merged 10 commits into from
Dec 16, 2018
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ test_script:
- npm --version
# Run all tests
- yarn lint
- yarn doc
- yarn test:unit
- yarn audit
- npx snyk test
- yarn test:integration
- yarn doc

# Don't actually build.
build: off
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ cache:
install:
- npm install
- npm install -g npx
- npx snyk auth $SNYK_TOKEN

script:
- yarn build
- yarn doc
- yarn test:unit
- yarn lint
- yarn audit
- npx snyk test
- yarn test:integration
- yarn doc
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"fix": "yarn fix:tslint",
"fix:prettier": "npx prettier \"src/**/*.ts\" \"test/**/*.ts\" \"docs/**/*.ts\" --config ./.prettierrc --write",
"fix:tslint": "npx tslint --fix --force -t verbose 'test/**/*.ts' 'src/**/*.ts' 'docs/**/*.ts'",
"test:doc": "node ./scripts/test-docs.js",
"test": "yarn build && yarn lint && yarn test:unit && yarn audit && yarn test:integration && yarn doc",
"test": "yarn build && yarn lint && yarn doc && yarn test:unit && npx snyk test && yarn test:integration",
"test:unit": "npx jest --testPathIgnorePatterns \"./test/integration/require.test.ts\"",
"test:integration": "node ./scripts/test-integration.js",
"watch": "./scripts/tmux-start.sh",
Expand Down Expand Up @@ -98,6 +97,7 @@
"prettier": "^1.10.2",
"pretty-quick": "^1.8.0",
"release-it": "^7.4.8",
"snyk": "^1.117.1",
"standard-version": "^4.0.0",
"ts-jest": "^22.4.5",
"tslint": "^5.4.3",
Expand Down
6 changes: 5 additions & 1 deletion scripts/build-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ cd build/lib && yarn link
echo '4. linking kalimdor to local'
cd ../.. && yarn link kalimdor

# Running docs
echo '5. Running doc generation'
yarn doc

# Running integration test as part of the build
echo '5. run the jest require tests'
echo '6. run the jest require tests'
npx jest -t "integration:require"
echo 'finished building for prod'
43 changes: 0 additions & 43 deletions scripts/test-docs.js

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/test-docs.sh

This file was deleted.

Loading