an effort has been made to keep the existing build structure intact. e2e tests reference index.html files in cypress/public that reference the build artifacts in <rootDir>/dist.
npm testwill run both unit and e2e tests. npm test has hooks to pretest which starts the http-server and posttest that kills it
the jest-puppeteer config and <rootDir>/__tests__ has been removed.
Note that the Window.test.js tests will fail if the jest-puppeteer preset is removed from the jest configuration. This seems perhaps an unintended global window dependency that has been introduced into the unit tests. So, the preset and puppeteer dependency has been retained until that can be dealt with.
the existing integration tests have been rewritten in the cypress DSL.
there is some boilerplate cypress code in that directory. left in for general reference.
an effort has been made to keep the existing build structure intact. e2e tests reference
index.html
files incypress/public
that reference the build artifacts in<rootDir>/dist
.npm test
will run both unit and e2e tests.npm test
has hooks topretest
which starts the http-server andposttest
that kills itthe
jest-puppeteer
config and<rootDir>/__tests__
has been removed.Note that the
Window.test.js
tests will fail if thejest-puppeteer
preset is removed from the jest configuration. This seems perhaps an unintended global window dependency that has been introduced into the unit tests. So, the preset and puppeteer dependency has been retained until that can be dealt with.the existing integration tests have been rewritten in the cypress DSL.
there is some boilerplate cypress code in that directory. left in for general reference.