Unsupported key testURL causes troubles for (non-root) sub applications.
See original GitHub issueIs this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
Environment
node -v
: v8.6.0npm -v
: 5.3.0yarn --version
(if you use Yarn): 1.3.2npm ls react-scripts
(if you haven’t ejected): 1.0.12
Then, specify:
- Operating system: Ubuntu 16.04.3 LTS xenial
Steps to Reproduce
- Use react-router “Router” with history “createBrowserHistory” where supplied some basename-Property because you would like to deploy your application under a specific path. E.g.: “/app”
- Run the Tests like recommended “react-scripts test --env=jsdom”
- You will see a bunch warning logs like:
Warning: You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "/" to begin with "/app".
Expected Behavior
I would expect that your “createJestConfig” allows also to override “testURL” property. Then I could override your static value “http://localhost” with “http://localhost/app” to resolve my problem. I do not want to eject and had to patch your “createJestConfig” by one line:
supportedKeys.push('testURL')
Actual Behavior
You do not allow to override the “testURL” property inside the package.json.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
testlink 10.0.16 · bitnami/bitnami - Artifact Hub
DEPRECATED TestLink is test management software that facilitates software quality assurance. It suppors test cases, test suites, test plans, test projects ...
Read more >pytest Documentation - Read the Docs
The first test passed and the second failed. You can easily see the intermediate values in the assertion to help you under- stand...
Read more >Supplemental Document: BIG-IP 13.1.3 Fixes and Known Issues
Impact: Not able to modify SSL profile certificate key chain from iApp. Failure error message is reported on iApp and in ltm log....
Read more >Changelog - Cypress Documentation
Cypress will now warn when detecting unsupported dependencies for component testing. Fixes #22025. cy.type() can now be used to enter datetime values with ......
Read more >EJBCA Change Log Summary - PrimeKey Documentation
EJBCA 7.3.0. Released October 2019. New Features. ECA-7278 - Initial support for Azure Key Vault as EJBCA Crypto Token. ECA- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to get around this by just adding --testURL http://localhost/{variable} into my test script in package.json,
ie:
“test”: “react-scripts-ts test --env=jsdom --watch --testURL http://localhost/foo”
Should we set a default
testURL
based onhomepage
?