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

Pass component classes with a list of constructor args #39

Open
kyleect opened this issue Feb 13, 2021 · 0 comments
Open

Pass component classes with a list of constructor args #39

kyleect opened this issue Feb 13, 2021 · 0 comments
Labels
core enhancement New feature or request

Comments

@kyleect
Copy link
Member

kyleect commented Feb 13, 2021

const { Config } = require("@testingrequired/bespin-core");
const {
  GlobTestFileLocator,
} = require("@testingrequired/bespin-glob-test-file-locator");
const {
  SpecTestFileParse,
} = require("@testingrequired/bespin-spec-test-file-parser");
const { AsyncRunner } = require("@testingrequired/bespin-async-runner");
const { JUnitReporter } = require("@testingrequired/bespin-junit-reporter");
const { GlobalTestValuePlugin } = require("./src/GlobalTestValuePlugin");

module.exports = new Config(__filename)
  .withLocator(GlobTestFileLocator, "**/*.test.js")
  .withParser(SpecTestFileParse)
  .withRunner(AsyncRunner)
  .withReporter(JUnitReporter, "./junit.xml")
  .withSetting("randomizeTests", true)
  .withPlugin(GlobalTestValuePlugin);
@kyleect kyleect added enhancement New feature or request core labels Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant