Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Jest tests for e2e apps #114

Merged
merged 12 commits into from
Jan 24, 2023

Conversation

denysoblohin-okta
Copy link
Collaborator

@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
@@ -88,10 +88,15 @@ if ! yarn build; then
exit ${FAILED_SETUP}
fi

pushd ./dist
npx yalc publish
Copy link
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
Collaborator 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