Report generates in default location
mastrodaro opened this issue · comments
Hey,
one of last updates allowed to config via. jest config file. For this config:
reporters: [
"default",
[
"jest-stare",
{
resultDir: "tests/unit/results",
reportTitle: "...Test results",
reportHeadline: "...",
coverageLink: "../../coverage/index.html"
}
],
I am getting two reports: one in under /tests/unit/results and second /jest-stare
Thanks for reporting. So far, I haven't been able to reproduce. What platform are you running on? Also, maybe share any messages that say wrote output
please.
Windows, node: v10.16.0, npm: 6.9.0. I can check linux later.
Using with vue, cli config for jest unit testing.
** jest-stare --testResultsProcessor: wrote output report to ./jest-stare/index.html **
EDIT: I got also this line (in jest.config):
testResultsProcessor: "./node_modules/jest-stare",
without it it seems to be working, but then I dont get wrote output
line.
Thank you - that makes a lot of sense. The testResultsProcessor
runs at the end and can only read config from the jest-stare
config in package.json
since testResultsProcessor
does not allow passing a config.
Some projects document that testResultsProcessor
will be deprecated, but I can't find clear information on that.
Sorry for the troubles, I'll have to document this configuration limitation in the README. I'll leave this open until I get the doc in.