@austinkelleher pointed out some time ago that it's not ideal to always load .env when running yarn test. This has proven to be true in a few situations. Instead, the developer that wants to perform recordings with the .env loaded (real credentials) will use yarn test:env, and the build will use yarn test:ci.
@austinkelleher pointed out some time ago that it's not ideal to always load
.env
when runningyarn test
. This has proven to be true in a few situations. Instead, the developer that wants to perform recordings with the.env
loaded (real credentials) will useyarn test:env
, and the build will useyarn test:ci
.Move the integration template to this pattern:
package.json
scripts
:test/config.ts
(example):.github/workflows/build.yml
*.test.ts
that needs the configuration: