mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
tips for using the test-fast script (#5582)
This commit is contained in:
parent
f24bb0490f
commit
d9ac1abd8e
@ -149,6 +149,14 @@ describe.only('your describe test', ....)
|
||||
>
|
||||
>This is useful when trying to get a specific test or subset of tests to pass.
|
||||
|
||||
### Faster developer cycle for editing code and running tests
|
||||
|
||||
The `npm test` script works by deleting built TypeScript code, rebuilding the codebase, and then running tests. This can take a long time.
|
||||
|
||||
Instead, for a quicker feedback cycle, you can run `npm run compile --watch` to make a fresh build and instruct TypeScript to watch for changes and only compile what code you've changed.
|
||||
|
||||
Once TypeScript finishes compiling your changes, you can run `npm run test-fast` (instead of `test`), to trigger a test without causing a full recompile, which allows you to edit and check your changes much faster.
|
||||
|
||||
## Using Docker
|
||||
|
||||
To run your tests you need dbms installed on your machine. Alternatively, you can use docker
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user