You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately it turns out that Cypress currently ignores the user-supplied tsconfig.json file, so any compiler options specified aren't actually used when building & running the tests.
Hopefully this will change with a future release of Cypress.
For now, the workaround was to change all imports to be relative to the current file, e.g.
In 0b1b54c we removed
@cypress/webpack-preprocessor
in favour of native Typescript support introduced in Cypress v4.4.0.Previously, the webpack config used by the preprocessor included:
...to allow test files in
/cypress/integration/*
to resolve import specifiers relative to the/cypress/support/*
directory, e.g.The hope was that the existing config in
cypress/tsconfig.json
(already there for VS Code to resolve these paths) would achieve the same result:Unfortunately it turns out that Cypress currently ignores the user-supplied
tsconfig.json
file, so any compiler options specified aren't actually used when building & running the tests.Hopefully this will change with a future release of Cypress.
For now, the workaround was to change all imports to be relative to the current file, e.g.
cypress-io/cypress#7188
The text was updated successfully, but these errors were encountered: