documentation icon indicating copy to clipboard operation
documentation copied to clipboard

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

Open baerrach opened this issue 6 years ago • 3 comments

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

Fixes aurelia/documentation#441

baerrach avatar Jul 15 '19 05:07 baerrach

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

EisenbergEffect avatar Jul 15 '19 16:07 EisenbergEffect

@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.

zewa666 avatar Jul 16 '19 05:07 zewa666

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"
    ],

3cp avatar Jul 16 '19 22:07 3cp