newspack-scripts 4.3.6 → 4.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/test.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newspack-scripts",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "newspack-scripts": "./bin/newspack-scripts.js"
package/scripts/test.js CHANGED
@@ -20,7 +20,11 @@ const JEST_CONFIG = {
20
20
  transform: {
21
21
  "^.+\\.(j|t)sx?$": path.resolve(__dirname, "utils/babelJestTransformer.js"),
22
22
  },
23
- transformIgnorePatterns: ["/node_modules/(?!newspack-scripts/)"],
23
+ transformIgnorePatterns: [
24
+ // Ignore all node_modules except for newspack-scripts, @wordpress/* packages, and
25
+ // a @wordpress/data dependency which distributes an ES6 module.
26
+ "/node_modules/(?!(newspack-scripts|@wordpress|is-plain-obj)/)",
27
+ ],
24
28
  moduleNameMapper: {
25
29
  "\\.(scss|css)$": path.resolve(__dirname, "utils/babelJestTransformer.js"),
26
30
  },