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

feat(ci): Add coverage and junit results for js #6929

Merged
merged 8 commits into from
Jan 18, 2018
Merged

Conversation

dcramer
Copy link
Member

@dcramer dcramer commented Jan 9, 2018

No description provided.

.babelrc.js Outdated
'transform-decorators-legacy',
'transform-class-properties',
'transform-object-rest-spread',
'transform-runtime',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this i got weird import errors on some tests

.babelrc.js Outdated
[
'babel-plugin-transform-builtin-extend',
{
globals: ['Array', 'Error'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i added Error here for no good reason other than I use it in Zeus and its nice to be able to extend it and maintain the type

@@ -0,0 +1,58 @@
'use strict';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file can be removed

scripts/test.js Outdated
throw err;
});

// Ensure environment variables are read.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this include can be removed

@ghost
Copy link

ghost commented Jan 9, 2018

1 Warning
⚠️ Changes to build requirements

Generated by 🚫 danger

package.json Outdated
"collectCoverage": true,
"collectCoverageFrom": [
"tests/js/spec/**/*.{js,jsx}",
"src/sentry/static/sentry/**/*.{js,jsx}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be src/sentry/static/sentry/app/**/*.{js,jsx}?

package.json Outdated
"lint": "node_modules/.bin/eslint tests/js src/sentry/static/sentry/app --ext .jsx",
"dev-proxy": "node scripts/devproxy.js",
"dev-server": "webpack-dev-server",
"storybook": "start-storybook -p 9001 -c .storybook",
"snapshot": "build-storybook && PERCY_TOKEN=$STORYBOOK_PERCY_TOKEN PERCY_PROJECT=$STORYBOOK_PERCY_PROJECT percy-storybook --widths=375,1280"
},
"jest": {
"collectCoverage": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed, and instead we pass --coverage into test-ci tasl

package.json Outdated
"jest": "NODE_ENV=test node_modules/.bin/jest",
"jest-debug": "NODE_ENV=test node --inspect-brk node_modules/.bin/jest --runInBand",
"test": "node scripts/test.js --env=jsdom",
"test-ci": "node scripts/test.js -- --runInBand --ci --testResultsProcessor=jest-junit",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that it matters much but shouldn't these all work if calling npm run test?

@dcramer dcramer force-pushed the feat/js-coverage branch 9 times, most recently from 7985513 to 5a12942 Compare January 10, 2018 15:20
@dcramer
Copy link
Member Author

dcramer commented Jan 10, 2018

dynamic-import-node being loaded outside of tests was causing weird behavior with our .less usage

@billyvg
Copy link
Member

billyvg commented Jan 10, 2018

storybook's local presets is broken storybookjs/storybook#2635

@dcramer
Copy link
Member Author

dcramer commented Jan 18, 2018

lol i cant approve this

i think that means that you can approve/merge billy

@billyvg billyvg merged commit ba4e369 into master Jan 18, 2018
@billyvg billyvg deleted the feat/js-coverage branch January 18, 2018 19:46
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants