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

Improve plugin loading in tests #24

Merged
merged 3 commits into from
Oct 13, 2023
Merged

Improve plugin loading in tests #24

merged 3 commits into from
Oct 13, 2023

Conversation

mnkiefer
Copy link
Contributor

@mnkiefer mnkiefer commented Oct 13, 2023

  • Gets rid of workaround to load plugin in integration tests:
cds.env.plugins["@cap-js/change-tracking"] = {
    "impl": require("path").join(__dirname, "../../cds-plugin.js")
}
cds.env.roots.push("../../");
  • Instead, the plugin has itself as a devDependecy (for the module name to be properly resolved)

@mnkiefer mnkiefer requested a review from sjvans October 13, 2023 06:29
@mnkiefer mnkiefer merged commit ea9ebf5 into main Oct 13, 2023
3 checks passed
@mnkiefer mnkiefer deleted the updateTests branch October 13, 2023 06:34
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.

1 participant