@percy/config
Advanced tools
Comparing version 1.6.4 to 1.7.0
@@ -14,3 +14,3 @@ import fs from 'fs'; | ||
cache: false, | ||
searchPlaces: ['package.json', '.percyrc', '.percy.json', '.percy.yaml', '.percy.yml', '.percy.js', 'percy.config.js'] | ||
searchPlaces: ['package.json', '.percyrc', '.percy.json', '.percy.yaml', '.percy.yml', '.percy.js', '.percy.cjs', 'percy.config.js', 'percy.config.cjs'] | ||
}); // Searches within a provided directory, or loads the provided config path | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "@percy/config", | ||
"version": "1.6.4", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "repository": { | ||
"dependencies": { | ||
"@percy/logger": "1.6.4", | ||
"@percy/logger": "1.7.0", | ||
"ajv": "^8.6.2", | ||
@@ -46,3 +46,3 @@ "cosmiconfig": "^7.0.0", | ||
}, | ||
"gitHead": "651c0fad62f128053723f9b8d565c69496dc51e4" | ||
"gitHead": "f1418fb1effdaad2d32c65d1a358282ab1f9ec32" | ||
} |
@@ -31,2 +31,5 @@ import fs from 'fs'; | ||
// Used to mock javascript modules | ||
const JS_FILE_REG = /\.(c|m)?js$/; | ||
// Mock and spy on fs methods using an in-memory filesystem | ||
@@ -49,3 +52,3 @@ export async function mockfs({ | ||
spyOn(vol, 'writeFileSync').and.callFake((...args) => { | ||
if (args[0].endsWith('.js')) mockFileModule(...args); | ||
if (JS_FILE_REG.test(args[0])) mockFileModule(...args); | ||
return vol.writeFileSync.and.originalFn.apply(vol, args); | ||
@@ -52,0 +55,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33745
711
+ Added@percy/logger@1.7.0(transitive)
- Removed@percy/logger@1.6.4(transitive)
Updated@percy/logger@1.7.0