Content-Length: 286257 | pFad | http://github.com/webpack/schema-utils/commit/77d2d7daef4cbaee7e3f45025fe0ff26b5627d99
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd6df1 commit 77d2d7dCopy full SHA for 77d2d7d
test/api.test.js
@@ -306,7 +306,21 @@ describe("api", () => {
306
}
307
});
308
309
- it("should allow to enable and disable validation using API", () => {
+ it.only("should allow to enable and disable validation using API", () => {
310
+ process.env.SKIP_VALIDATION = "unknown";
311
+ expect(needValidate()).toBe(true);
312
+
313
+ process.env.SKIP_VALIDATION = "no";
314
315
316
+ process.env.SKIP_VALIDATION = "yes";
317
+ expect(needValidate()).toBe(false);
318
319
+ enableValidation();
320
+ expect(process.env.SKIP_VALIDATION).toBe("n");
321
322
+ process.env.SKIP_VALIDATION = "undefined";
323
324
enableValidation();
325
expect(needValidate()).toBe(true);
326
Fetched URL: http://github.com/webpack/schema-utils/commit/77d2d7daef4cbaee7e3f45025fe0ff26b5627d99
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments