Skip to content

doc(testing/components): Clarify Testing a Custom Element#442

Open
baerrach wants to merge 2 commits into
aurelia:masterfrom
baerrach:testing-components
Open

doc(testing/components): Clarify Testing a Custom Element#442
baerrach wants to merge 2 commits into
aurelia:masterfrom
baerrach:testing-components

Conversation

@baerrach

Copy link
Copy Markdown
Contributor

Removed inform box specific to Karma as there is no documentation at all about
how to set Karma up.

Fixes #441

baerrach added 2 commits July 15, 2019 15:01
Removed inform box specific to Karma as there is no documentation at all about
how to set Karma up.

Fixes aurelia#441
@EisenbergEffect

Copy link
Copy Markdown
Contributor

Was this the final outcome of the conversation or were we waiting on @3cp to respond to #441 ?

@zewa666

zewa666 commented Jul 16, 2019

Copy link
Copy Markdown
Member

@EisenbergEffect I'd like @3cp to chime into this discussion as he has a better overview of how Karma, Jest and other fit into the CLI.

@3cp

3cp commented Jul 16, 2019

Copy link
Copy Markdown
Member

With cli, it definitely has no need of src/ prefix, for all karma/jest/cli-bundler/webpack. The doc is outdated I guess.

But with webpack+karma, you do need .withResources(PLATFORM.moduleName('some-comp')) wrapper for webpack to trace it.

The jest has config inside app package.json to skip the src/ prefix.

"modulePaths": [
      "<rootDir>/src",
      "<rootDir>/node_modules"
    ],

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.

Testing Components is out of sync with latest Aurelia

4 participants