question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing trailing slash in resultDir.

See original GitHub issue

Default resultDir results in broken file structure when generating the report: I think this:

https://github.com/dkelosky/jest-stare/blob/v1.6.0/src/processor/Config.ts#L50 should add trailing slash also for default value:

if (config.resultDir == null) {
  config.resultDir = Constants.DEFAULT_RESULTS_DIR;
}

config.resultDir = config.resultDir + "/";

The other thing that would be useful is to allow to pass config options in jest config. The following doesn’t seem to work:

reporters: [
  ['jest-stare', {
    resultDir: 'report'
  }]
];

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arthwoodcommented, Aug 28, 2018

@dkelosky I tested it against 1.6.8 (1.6.5 had installation failure) and looks good! Thanks!

1reaction
dogboydogcommented, Aug 23, 2018

Just reproduced that, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

asp.net - Why redirects happens on missing of a trailing slash ...
One of the most wasteful redirects happens when a trailing slash (/) is missing from a URL that should otherwise have one.
Read more >
Missing trailing slash in URL on subpages resulting in Moz PA ...
Even here in moz community I am noticing it. Is it really a factor to have an ending slash on the page? Does...
Read more >
Missing trailing slash in generated URLs #156 - GitHub
After pulling the latest version of claat (1a49757), I'm noticing that the generated code contains errors in the generated HTML.
Read more >
Missing trailing slash of home url - WordPress.org
The about us and team links have trailing slashes in the url but home does not. The missing slash is creating a chain...
Read more >
apache 2.4 - Website root trailing slash auto-removed (issue)
... the trailing slash on the target URL! This will result in the malformed (missing slash after the domain) redirect you are seeing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found