Lachlan Miller
c0fc23a052
feat(npm/webpack-dev-server,runner-ct): Normalize webpack errors + general React/TS improvements ( #16613 )
...
* feat: normalize webpack errors
* move some files to TS
* add tests
* simplify test
* improve types
Co-authored-by: Jessica Sachs <jess@jessicasachs.io >
2021-05-24 17:40:36 -04:00
Adam Gastineau
4bb1ecd077
fix: Properly typecheck webpack-dev-server and fix several undefined issues ( #16503 )
2021-05-14 10:07:03 -07:00
Lachlan Miller
bcd05862fc
Merge branch 'master' into develop
2021-05-13 02:13:03 +00:00
Lachlan Miller
0cea625f35
feat: support webpack dev server v4 ( #16414 )
...
* feat: support webpack dev server v4
* simplify code
* add types
2021-05-13 12:12:29 +10:00
Lachlan Miller
116fe649d7
fix: encodeURI to correctly load specs with white space ( #16416 )
...
* fix: encodeURI to correctly load specs with white space
* fix the tests
* allow refresh page when spaes are in the path
Co-authored-by: ElevateBart <ledouxb@gmail.com >
Co-authored-by: Barthélémy Ledoux <bart@cypress.io >
2021-05-11 11:01:07 +10:00
Lachlan Miller
14c22929ba
feat: exclude html pwa plugin in webpack dev server ( #16388 )
...
Co-authored-by: Adam Gastineau <adamg@cypress.io >
2021-05-10 16:14:03 +10:00
Lachlan Miller
042fb6a0c0
support custom index-template for webpack dev server ( #16247 )
2021-04-28 11:04:31 -04:00
Lachlan Miller
4cfe4b1971
fix(webpack-dev-server): remove hard dependency on html-webpack-plugin v4 ( #16108 )
...
* update webpack-dev-server to support html-webpack-plugin 4 and 5
* add nextjs example
* update env
* chore: comment out nextjs webpack 5 example
* use ts-ignore instead of 'ts-expect-error'
* lock file
* chore: update dependencies
Co-authored-by: Barthélémy Ledoux <bart@cypress.io >
2021-04-23 13:47:05 +10:00
Lachlan Miller
92d0b76aa5
chore: remove conflicting types
2021-04-22 12:10:09 +10:00
Barthélémy Ledoux
ecf21a6caa
Merge branch 'master' into develop
2021-04-21 14:17:11 +00:00
Barthélémy Ledoux
7340851097
fix(webpack): allow load custom asset on windows ( #16099 )
...
* fix(webpack): allow load custom asset on windows
closes #16097
* fix: use a regexp and path.sep
* chore: avoid replacement when using posix filesystem
2021-04-21 09:16:26 -05:00
Lachlan Miller
10b89f8d58
fix(component-testing): correct imports for relative paths in cypress.json ( #16056 )
2021-04-21 05:13:25 -07:00
Barthélémy Ledoux
6c12a6c7b7
fix: run-ct does not hang on windows anymore ( #16022 )
2021-04-16 10:34:14 -05:00
Barthélémy Ledoux
dcf3b14f36
fix: remove lazy-compile-webpack-plugin ( #15964 )
...
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com >
2021-04-13 15:34:37 -04:00
Lachlan Miller
19136b6a13
fix: remove lazy-compile-webpack-plugin, make html-webpack-plugin a dependency ( #15954 )
...
* update webpack perf stats
* do not use lazy-compile plugin. add html-webpack-plugin as direct deps
* update snapshot
* remove unused deps
2021-04-13 11:34:56 -04:00
Jessica Sachs
1d271ea209
Revert "fix: ensure root el mounting exists, remove userland html webpack plugin ( #15870 )" ( #15949 )
...
This reverts commit 726120da18 .
Co-authored-by: ElevateBart <ledouxb@gmail.com >
2021-04-12 17:10:44 -04:00
Barthélémy Ledoux
602c762cfd
fix: make component testing windows compatible ( #15889 )
2021-04-10 10:52:10 -05:00
Lachlan Miller
8e894a0fdb
fix(webpack-dev-server): remove output.publicPath from webpack-dev-server ( #15839 )
...
* fix: remove publicPath in react-scripts if it is present
* fix: remove publicPath in react-scripts if it is present
* fix: remove publicPath in webpack-dev-server regardless
* fix: add root path
* chore: revert
* fix: remove user base path
* remove unused function
* test: add unit test for make webpack config
* chore: make purpose for fake url more clear
* do not include local filesystem path in snapshot
2021-04-09 08:23:01 -04:00
Lachlan Miller
726120da18
fix: ensure root el mounting exists, remove userland html webpack plugin ( #15870 )
...
* fix: ensure root el exists
* fix: remove userland webpack plugins
* chore: bump html webpack plugin version
* fix: remove preload plugin
* chore: remove dep
* fix: revert code
* chore: revert
* chore: revert
* fix: null check for user webpack
2021-04-09 12:55:09 +10:00
Dmitriy Kovalenko
254eb47d91
fix(component-testing): Fix webpack-dev-server deps validation crash ( #15708 )
...
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com >
Co-authored-by: ElevateBart <ledouxb@gmail.com >
Co-authored-by: Barthélémy Ledoux <bart@cypress.io >
2021-04-02 10:12:57 -05:00
Adam Gastineau
fa780634ca
Removed experimentalComponentTesting flag
2021-03-29 10:47:52 -07:00
Dmitriy Kovalenko
b1f831a86a
fix(@cypress/react): Devtools unpredictable resets ( #15612 )
...
* fix: Devtools unpredictable resets
* Remove cleaning up from webpack-dev-server
* Fix lint errors
* Get back observer
* fix: bring back cleanup (#15634 )
* fix: wait for fw teardown to do html teardown
* fix: port responsibility of teardown to frameworks
* chore: add comments
* fix: typings
* fix: react unmount cannot be called in the right hook
* run dtslint
Co-authored-by: Barthélémy Ledoux <bart@cypress.io >
Co-authored-by: ElevateBart <ledouxb@gmail.com >
2021-03-25 10:43:34 +10:00
ElevateBart
2917fe3f68
refactor: properly use the dev server publicPaths
2021-03-22 11:20:05 -05:00
Barthélémy Ledoux
a12b72b81d
refactor(component-testing): simplify vue mount ( #15275 )
...
Co-authored-by: Jessica Sachs <jess@jessicasachs.io >
2021-03-18 20:38:59 -04:00
Barthélémy Ledoux
5fd91bde01
chore: deliver npm modules ( #15398 )
...
* fix: deliver webpack-dev-server new architecture
* fix: make vite-dev-server work
* fix: deliver react and vite-dev-server
* fix: deliver the vue2 package too
* fix: rollback react changes published to next
2021-03-10 12:40:59 -06:00
Jessica Sachs
2863e33892
fix: add webpack-dev-server to peerDependencies, improve peerDependency error handling, fix index-template.html path ( #15149 )
2021-02-18 18:00:48 -05:00
ElevateBart
585649c61c
Merge branch 'develop' into master-merge-up
2021-02-17 14:07:51 -06:00
Lachlan Miller
fb7540e99d
fix: add a trivial change to trigger semantic release ( #15127 )
2021-02-17 17:12:24 +00:00
Dmitriy Kovalenko
fe27ebca87
chore(component-testing): Improve measuring webpack performance ( #15105 )
2021-02-17 13:19:20 +02:00
Dmitriy Kovalenko
ecbec9d7d7
chore(component-testing): Create infrastructure for automatized webpack performance monitoring ( #15017 )
2021-02-12 15:44:29 +02:00
Lachlan Miller
2d182902ca
chore: update files based on TR review
2021-02-08 16:49:52 +10:00
Brian Mann
af26fbebe6
feat: component testing ( #14479 )
...
Co-authored-by: Jessica Sachs <jess@jessicasachs.io >
Co-authored-by: Barthélémy Ledoux <bart@cypress.io >
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com >
Co-authored-by: Zach Bloomquist <github@chary.us >
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com >
Co-authored-by: ElevateBart <ledouxb@gmail.com >
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com >
2021-02-04 15:45:16 -05:00