Skip to content

Enable Jest tests for e2e apps#114

Merged
eng-services-aperture-github-bot-okta merged 12 commits into
masterfrom
od-jest-fix-OKTA-551971
Jan 24, 2023
Merged

Enable Jest tests for e2e apps#114
eng-services-aperture-github-bot-okta merged 12 commits into
masterfrom
od-jest-fix-OKTA-551971

Conversation

@denysoblohin-okta
Copy link
Copy Markdown
Contributor

@denysoblohin-okta denysoblohin-okta commented Dec 2, 2022

  • Enabled Jest tests for e2e apps, configured with jest-preset-angular.
    Adds @okta/okta-angular to transformIgnorePatterns in jest config
  • Added yarn test:unit for test apps. Run it during e2e script in Bacon.
  • Updated app.component.spec.ts to work with okta-angular 6

Internal ref: OKTA-551971

@denysoblohin-okta denysoblohin-okta changed the title Jest tests for e2e apps Fix and enable Jest tests for e2e apps Dec 2, 2022
@denysoblohin-okta denysoblohin-okta changed the title Fix and enable Jest tests for e2e apps Use .mjs extension for dist. Enable Jest tests for e2e apps Dec 2, 2022
@denysoblohin-okta denysoblohin-okta changed the title Use .mjs extension for dist. Enable Jest tests for e2e apps Enable Jest tests for e2e apps Dec 7, 2022
Comment thread scripts/setup-e2e.sh Outdated
fi

pushd ./dist
npx yalc publish
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can these calls to npx yalc be replaced with yarn commands?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced with yarn test:apps:prepare

readme
@denysoblohin-okta denysoblohin-okta linked an issue Jan 24, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot run Jest tests with okta-angular 6.0.0

4 participants