Comments (5)
@ThomasGHenry Did you try
yarn rw test --testTimeout=10000
Not that your issue said you tried yarn rw test -- --testTimeout=10000
From what I see in
all other flags are forwarded,If I do
`yarn rw test --timoutt=10000`
A non-recognized flag, then it errors:
● Unrecognized CLI Parameter:
Unrecognized option "timoutt".
CLI Options Documentation:
https://jestjs.io/docs/cli
It might that that extra --
that prevent the string to be forwarded.
from redwood.
@ThomasGHenry Hi again, I did reply in the community thread here https://community.redwoodjs.com/t/set-jest-testtimeout/5618 but will keep this issue up-to-date with any findings to help customize and set the test timeout on the api side tests.
from redwood.
Also, @ThomasGHenry could you try running yarn rw test --debug
, the warning might be just that, an odd warning, but the actual setting testTimeout
seems to be there in the config:
"testFailureExitCode": 1,
"testPathPattern": "",
"testSequencer": ".....demos/node_modules/@jest/test-sequencer/build/index.js",
"testTimeout": 30000, <---------------------------
"updateSnapshot": "new",
"useStderr": false,
"verbose": true,
"watch": true,
"watchAll": false,
"watchPlugins": [
when I set
// More info at https://redwoodjs.com/docs/project-configuration-dev-test-build
const config = {
rootDir: '../',
preset: '@redwoodjs/testing/config/jest/web',
verbose: true,
testTimeout: 30000,
}
module.exports = config
for my web side config
from redwood.
Actually, @ThomasGHenry I was about to set a custom test timeout for the api side api/jest.config.js
:
// api/jest.config.js
// More info at https://redwoodjs.com/docs/project-configuration-dev-test-build
const config = {
rootDir: '../',
preset: '@redwoodjs/testing/config/jest/api',
testTimeout: 80000,
}
module.exports = config
and yarn rw test api --debug
shows:
"testFailureExitCode": 1,
"testPathPattern": "",
"testSequencer": "..../node_modules/@jest/test-sequencer/build/index.js",
"testTimeout": 80000, <--------------------------
"updateSnapshot": "new",
"useStderr": false,
"watch": true,
"watchAll": false,
"watchPlugins": [
Does that work for you?
Note: I did not set that for the web side test in the config.
Also, I did not get any validation warnings the just setting the api side.
from redwood.
It might that that extra
--
that prevent the string to be forwarded.
That did it on the CLI!
I'll circle back for the other suggestions another time, but nothing I've tried json-wise worked as expected so far.
Thanks!
from redwood.
Related Issues (20)
- [Bug?]: Developer UX for large applications is poor HOT 3
- feat: Setup GraphQL Trusted Documents with a setup command HOT 2
- [Bug?]: ts/js files placed inside of web/src are getting served instead of serving the proper route HOT 5
- [Docs]: how functions work in a PaaS environments like Render.com HOT 4
- [Docs]: Chapter 5 of the Tutorial uses an old format of Storybook HOT 1
- [Bug?]: `yarn rw test` causes antivirus program to warn me about access to folder on Mac OS HOT 14
- [Docs]: <Set private> is deprecated, used within Router docs HOT 1
- [Docs]: Confusion regarding the SUPERTOKENS_* env variables in generated code HOT 10
- [Bug?]: Generators Cannot read properties of undefined (reading 'startsWith') HOT 5
- [Bug?]: Invalid SDL generated with certain Prisma models that lack editable fields HOT 2
- [Bug?]: Prisma Model with Bytes field fails SDL generation in Service Test template HOT 4
- [Bug]: Cell generation does not support the Custom Prisma Id Field that Scaffolding Supports
- [Bug?]: FastifyError [Error]: The decorator 'urlData' has already been added! HOT 2
- [Docs]: Firebase setup
- [Docs]: Authentication and routes HOT 1
- Change auth impersonation in Studio to not use Request body HOT 1
- Error in Redwood Studio HOT 6
- [Bug]: yarn create redwood-app ... stopped by ERR_IMPORT_ASSERTION_TYPE_MISSING HOT 4
- [Bug?]: url search parameter is erased if originated from outside the app (via redirection) HOT 4
- [Bug?]: the teardown in jest.setup is attempting to delete data from views HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redwood.