/opt/canhelp/node_modules/next/dist/experimental/testmode/playwright
NameSizeModeActions
default-config.d.ts6300644editdlrm
default-config.js13870644editdlrm
default-config.js.map24460644editdlrm
index.d.ts8710644editdlrm
index.js39940644editdlrm
index.js.map34240644editdlrm
msw.d.ts8300644editdlrm
msw.js28450644editdlrm
msw.js.map35540644editdlrm
next-fixture.d.ts5230644editdlrm
next-fixture.js19590644editdlrm
next-fixture.js.map41360644editdlrm
next-options.d.ts1320644editdlrm
next-options.js1220644editdlrm
next-options.js.map670644editdlrm
next-worker-fixture.d.ts4330644editdlrm
next-worker-fixture.js14190644editdlrm
next-worker-fixture.js.map28860644editdlrm
page-route.d.ts2620644editdlrm
page-route.js19520644editdlrm
page-route.js.map37950644editdlrm
report.d.ts2470644editdlrm
report.js37180644editdlrm
report.js.map63160644editdlrm
step.d.ts4330644editdlrm
step.js7620644editdlrm
step.js.map14980644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/experimental/testmode/playwright/index.js (3994B)
// eslint-disable-next-line import/no-extraneous-dependencies "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { default: null, defaultPlaywrightConfig: null, defineConfig: null, test: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { default: function() { return _default; }, defaultPlaywrightConfig: function() { return _defaultconfig.defaultPlaywrightConfig; }, defineConfig: function() { return defineConfig; }, test: function() { return test; } }); 0 && __export(require("@playwright/test")); const _test = /*#__PURE__*/ _interop_require_wildcard(_export_star(require("@playwright/test"), exports)); const _nextworkerfixture = require("./next-worker-fixture"); const _nextfixture = require("./next-fixture"); const _defaultconfig = require("./default-config"); function _export_star(from, to) { Object.keys(from).forEach(function(k) { if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) { Object.defineProperty(to, k, { enumerable: true, get: function() { return from[k]; } }); } }); return from; } function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } function _interop_require_wildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = { __proto__: null }; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for(var key in obj){ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function defineConfig(config) { if (config.webServer !== undefined) { // Playwright doesn't merge the `webServer` field as we'd expect, so remove our default if the user specifies one. const { webServer, ...partialDefaultPlaywrightConfig } = _defaultconfig.defaultPlaywrightConfig; return _test.defineConfig(partialDefaultPlaywrightConfig, config); } else { return _test.defineConfig(_defaultconfig.defaultPlaywrightConfig, config); } } const test = _test.test.extend({ nextOptions: [ { fetchLoopback: false }, { option: true } ], _nextWorker: [ // eslint-disable-next-line no-empty-pattern async ({}, use)=>{ await (0, _nextworkerfixture.applyNextWorkerFixture)(use); }, { scope: 'worker', auto: true } ], next: async ({ nextOptions, _nextWorker, page }, use, testInfo)=>{ await (0, _nextfixture.applyNextFixture)(use, { testInfo, nextWorker: _nextWorker, page, nextOptions }); } }); const _default = test; //# sourceMappingURL=index.js.map