-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove fixtures and use Cypress for integration tests #48
Conversation
Codecov Report
@@ Coverage Diff @@
## master #48 +/- ##
==========================================
+ Coverage 69.83% 69.91% +0.08%
==========================================
Files 8 8
Lines 358 359 +1
Branches 62 62
==========================================
+ Hits 250 251 +1
Misses 108 108
Continue to review full report at Codecov.
|
@mwistrand looks like you have a failure on appveyor |
- Remove the fixtures and update the functional tests use Cypress - Update the test-app build to copy an index.html file that loads the build custom elements - Clean up the gitignore - Add integration tests for the --legacy flag - Improve `features` logic
src/base.config.ts
Outdated
@@ -88,7 +89,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration { | |||
const jsonpIdent = args.element ? args.element.name : 'custom-elements'; | |||
const extensions = args.legacy ? ['.ts', '.tsx', '.js'] : ['.ts', '.tsx', '.mjs', '.js']; | |||
const compilerOptions = args.legacy ? {} : { target: 'es6', module: 'esnext' }; | |||
const features = args.legacy ? args.features : ['chrome']; | |||
const features = args.legacy ? args.features : { ...(args.features || {}), ...getFeatures('chrome') }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this is actually modern
now, missed updating this when I updated webpack-contrib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easily done here. Once CI passes I'll merge. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment that we can update as part of this or in a separate change 👍
.gitignore
--legacy
flagfeatures
logicResolves #46