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
TypeError: Cannot read property 'options' of undefined
I'm unable to run vue test utils in CI environment (GitHub action). I saw this issue from a while back (different version but looks like a similar issue?) but sync: false isn't an option anymore.
Steps to reproduce
Install the most recent @next versions of vue-jest and @vue/test-utils
Use the below setup
Create a simple unit test
Works locally
Fails in CI
Expected behaviour
Tests run the same way they do locally
Actual behaviour
Tests work locally but not in CI
Possible Solution
I think my CI test environment might not be configured correctly but I don't know what is wrong.
Here's the full error:
Run yarn test:unit
8s
##[error]Process completed with exit code 1.
Run yarn test:unit
yarn run v1.22.4
$ jest
FAIL src/apps/FrontDesk/FrontDesk.spec.ts
● Test suite failed to run
TypeError: Cannot read property 'options' of undefined
at getTsJestConfig (node_modules/vue-jest/lib/utils.js:71:45)
at processTemplate (node_modules/vue-jest/lib/process.js:73:20)
at Object.module.exports [as process] (node_modules/vue-jest/lib/process.js:107:26)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:463:35)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:568:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:606:25)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 6.696 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
##[error]Process completed with exit code 1.
TypeError: Cannot read property 'options' of undefined
I'm unable to run vue test utils in CI environment (GitHub action). I saw this issue from a while back (different version but looks like a similar issue?) but
sync: false
isn't an option anymore.Steps to reproduce
@next
versions ofvue-jest
and@vue/test-utils
Expected behaviour
Tests run the same way they do locally
Actual behaviour
Tests work locally but not in CI
Possible Solution
I think my CI test environment might not be configured correctly but I don't know what is wrong.
Here's the full error:
versions
Component to test
My test
jest.config.js
tsconfig.json
babel.config.js
The text was updated successfully, but these errors were encountered: