Skip to content

Commit

Permalink
Updated Jest In Aws Codebuild Feeling Ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty authored and Siteleaf committed Jul 25, 2024
1 parent 0f40952 commit e4dc39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _drafts/jest-in-aws-codebuild-feeling-ignored.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ As you can see, CodeBuild puts everything under a directory named "codebuild", w

## Rooting for the bad guy

Because path patterns in Jest config match anywhere in the _absolute path_ to a resource, not just within the project directory, the recommendation in the docs is to use the `<rootDir>` token to match strictly within your project:
Because path patterns in Jest config match anywhere in the _absolute path_ to a resource, not just within the project directory, the recommendation is to use the `<rootDir>` token to match strictly within your project:

<pre style="margin-inline: 0; margin-block: 1.5rem"><code>const config: Config = {
modulePathIgnorePatterns: ['<span style="font-weight: bold">&lt;rootDir&gt;</span>/build'],
Expand Down

0 comments on commit e4dc39a

Please sign in to comment.