Initial boiler plate project
This commit is contained in:
0
node_modules/next/dist/build/jest/__mocks__/empty.d.ts
generated
vendored
Normal file
0
node_modules/next/dist/build/jest/__mocks__/empty.d.ts
generated
vendored
Normal file
10
node_modules/next/dist/build/jest/__mocks__/empty.js
generated
vendored
Normal file
10
node_modules/next/dist/build/jest/__mocks__/empty.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
// this empty files is only here to mock server-only imports
|
||||
"use strict";
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=empty.js.map
|
||||
1
node_modules/next/dist/build/jest/__mocks__/empty.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/__mocks__/empty.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/empty.ts"],"names":[],"mappings":"AAAA,4DAA4D"}
|
||||
0
node_modules/next/dist/build/jest/__mocks__/fileMock.d.ts
generated
vendored
Normal file
0
node_modules/next/dist/build/jest/__mocks__/fileMock.d.ts
generated
vendored
Normal file
15
node_modules/next/dist/build/jest/__mocks__/fileMock.js
generated
vendored
Normal file
15
node_modules/next/dist/build/jest/__mocks__/fileMock.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
src: "/img.jpg",
|
||||
height: 40,
|
||||
width: 40,
|
||||
blurDataURL: "data:image/png;base64,imagedata"
|
||||
};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=fileMock.js.map
|
||||
1
node_modules/next/dist/build/jest/__mocks__/fileMock.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/__mocks__/fileMock.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/fileMock.ts"],"names":["module","exports","src","height","width","blurDataURL"],"mappings":";AAAAA,OAAOC,OAAO,GAAG;IACfC,KAAK;IACLC,QAAQ;IACRC,OAAO;IACPC,aAAa;AACf"}
|
||||
0
node_modules/next/dist/build/jest/__mocks__/nextFontMock.d.ts
generated
vendored
Normal file
0
node_modules/next/dist/build/jest/__mocks__/nextFontMock.d.ts
generated
vendored
Normal file
20
node_modules/next/dist/build/jest/__mocks__/nextFontMock.js
generated
vendored
Normal file
20
node_modules/next/dist/build/jest/__mocks__/nextFontMock.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
module.exports = new Proxy({}, {
|
||||
get: function getter() {
|
||||
return ()=>({
|
||||
className: "className",
|
||||
variable: "variable",
|
||||
style: {
|
||||
fontFamily: "fontFamily"
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=nextFontMock.js.map
|
||||
1
node_modules/next/dist/build/jest/__mocks__/nextFontMock.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/__mocks__/nextFontMock.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/nextFontMock.ts"],"names":["module","exports","Proxy","get","getter","className","variable","style","fontFamily"],"mappings":";AAAAA,OAAOC,OAAO,GAAG,IAAIC,MACnB,CAAC,GACD;IACEC,KAAK,SAASC;QACZ,OAAO,IAAO,CAAA;gBACZC,WAAW;gBACXC,UAAU;gBACVC,OAAO;oBAAEC,YAAY;gBAAa;YACpC,CAAA;IACF;AACF"}
|
||||
0
node_modules/next/dist/build/jest/__mocks__/styleMock.d.ts
generated
vendored
Normal file
0
node_modules/next/dist/build/jest/__mocks__/styleMock.d.ts
generated
vendored
Normal file
10
node_modules/next/dist/build/jest/__mocks__/styleMock.js
generated
vendored
Normal file
10
node_modules/next/dist/build/jest/__mocks__/styleMock.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
module.exports = {};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=styleMock.js.map
|
||||
1
node_modules/next/dist/build/jest/__mocks__/styleMock.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/__mocks__/styleMock.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/styleMock.ts"],"names":["module","exports"],"mappings":";AAAAA,OAAOC,OAAO,GAAG,CAAC"}
|
||||
24
node_modules/next/dist/build/jest/jest.d.ts
generated
vendored
Normal file
24
node_modules/next/dist/build/jest/jest.d.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import type { Config } from '@jest/types';
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* // Usage in jest.config.js
|
||||
* const nextJest = require('next/jest');
|
||||
*
|
||||
* // Optionally provide path to Next.js app which will enable loading next.config.js and .env files
|
||||
* const createJestConfig = nextJest({ dir })
|
||||
*
|
||||
* // Any custom config you want to pass to Jest
|
||||
* const customJestConfig = {
|
||||
* setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
* }
|
||||
*
|
||||
* // createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async
|
||||
* module.exports = createJestConfig(customJestConfig)
|
||||
* ```
|
||||
*
|
||||
* Read more: [Next.js Docs: Setting up Jest with Next.js](https://nextjs.org/docs/app/building-your-application/testing/jest)
|
||||
*/
|
||||
export default function nextJest(options?: {
|
||||
dir?: string;
|
||||
}): (customJestConfig?: Config.InitialProjectOptions | (() => Promise<Config.InitialProjectOptions>)) => () => Promise<Config.InitialProjectOptions>;
|
||||
221
node_modules/next/dist/build/jest/jest.js
generated
vendored
Normal file
221
node_modules/next/dist/build/jest/jest.js
generated
vendored
Normal file
@ -0,0 +1,221 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, /**
|
||||
* @example
|
||||
* ```ts
|
||||
* // Usage in jest.config.js
|
||||
* const nextJest = require('next/jest');
|
||||
*
|
||||
* // Optionally provide path to Next.js app which will enable loading next.config.js and .env files
|
||||
* const createJestConfig = nextJest({ dir })
|
||||
*
|
||||
* // Any custom config you want to pass to Jest
|
||||
* const customJestConfig = {
|
||||
* setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
* }
|
||||
*
|
||||
* // createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async
|
||||
* module.exports = createJestConfig(customJestConfig)
|
||||
* ```
|
||||
*
|
||||
* Read more: [Next.js Docs: Setting up Jest with Next.js](https://nextjs.org/docs/app/building-your-application/testing/jest)
|
||||
*/ "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return nextJest;
|
||||
}
|
||||
});
|
||||
const _env = require("@next/env");
|
||||
const _path = require("path");
|
||||
const _config = /*#__PURE__*/ _interop_require_default(require("../../server/config"));
|
||||
const _constants = require("../../shared/lib/constants");
|
||||
const _loadjsconfig = /*#__PURE__*/ _interop_require_default(require("../load-jsconfig"));
|
||||
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../output/log"));
|
||||
const _findpagesdir = require("../../lib/find-pages-dir");
|
||||
const _swc = require("../swc");
|
||||
function _interop_require_default(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
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;
|
||||
}
|
||||
async function getConfig(dir) {
|
||||
const conf = await (0, _config.default)(_constants.PHASE_TEST, dir);
|
||||
return conf;
|
||||
}
|
||||
/**
|
||||
* Loads closest package.json in the directory hierarchy
|
||||
*/ function loadClosestPackageJson(dir, attempts = 1) {
|
||||
if (attempts > 5) {
|
||||
throw new Error("Can't resolve main package.json file");
|
||||
}
|
||||
var mainPath = attempts === 1 ? "./" : Array(attempts).join("../");
|
||||
try {
|
||||
return require((0, _path.join)(dir, mainPath + "package.json"));
|
||||
} catch (e) {
|
||||
return loadClosestPackageJson(dir, attempts + 1);
|
||||
}
|
||||
}
|
||||
/** Loads dotenv files and sets environment variables based on next config. */ function setUpEnv(dir) {
|
||||
const dev = false;
|
||||
(0, _env.loadEnvConfig)(dir, dev, _log);
|
||||
}
|
||||
function nextJest(options = {}) {
|
||||
// createJestConfig
|
||||
return (customJestConfig)=>{
|
||||
// Function that is provided as the module.exports of jest.config.js
|
||||
// Will be called and awaited by Jest
|
||||
return async ()=>{
|
||||
var _nextConfig_experimental, _nextConfig_experimental1;
|
||||
let nextConfig;
|
||||
let jsConfig;
|
||||
let resolvedBaseUrl;
|
||||
let isEsmProject = false;
|
||||
let pagesDir;
|
||||
let serverComponents;
|
||||
if (options.dir) {
|
||||
const resolvedDir = (0, _path.resolve)(options.dir);
|
||||
const packageConfig = loadClosestPackageJson(resolvedDir);
|
||||
isEsmProject = packageConfig.type === "module";
|
||||
nextConfig = await getConfig(resolvedDir);
|
||||
const findPagesDirResult = (0, _findpagesdir.findPagesDir)(resolvedDir);
|
||||
serverComponents = !!findPagesDirResult.appDir;
|
||||
pagesDir = findPagesDirResult.pagesDir;
|
||||
setUpEnv(resolvedDir);
|
||||
// TODO: revisit when bug in SWC is fixed that strips `.css`
|
||||
const result = await (0, _loadjsconfig.default)(resolvedDir, nextConfig);
|
||||
jsConfig = result.jsConfig;
|
||||
resolvedBaseUrl = result.resolvedBaseUrl;
|
||||
}
|
||||
// Ensure provided async config is supported
|
||||
const resolvedJestConfig = (typeof customJestConfig === "function" ? await customJestConfig() : customJestConfig) ?? {};
|
||||
// eagerly load swc bindings instead of waiting for transform calls
|
||||
await (0, _swc.loadBindings)(nextConfig == null ? void 0 : (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.useWasmBinary);
|
||||
if (_swc.lockfilePatchPromise.cur) {
|
||||
await _swc.lockfilePatchPromise.cur;
|
||||
}
|
||||
const transpiled = ((nextConfig == null ? void 0 : nextConfig.transpilePackages) ?? []).join("|");
|
||||
const jestTransformerConfig = {
|
||||
modularizeImports: nextConfig == null ? void 0 : nextConfig.modularizeImports,
|
||||
swcPlugins: nextConfig == null ? void 0 : (_nextConfig_experimental1 = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental1.swcPlugins,
|
||||
compilerOptions: nextConfig == null ? void 0 : nextConfig.compiler,
|
||||
jsConfig,
|
||||
resolvedBaseUrl,
|
||||
serverComponents,
|
||||
isEsmProject,
|
||||
pagesDir
|
||||
};
|
||||
return {
|
||||
...resolvedJestConfig,
|
||||
moduleNameMapper: {
|
||||
// Handle CSS imports (with CSS modules)
|
||||
// https://jestjs.io/docs/webpack#mocking-css-modules
|
||||
"^.+\\.module\\.(css|sass|scss)$": require.resolve("./object-proxy.js"),
|
||||
// Handle CSS imports (without CSS modules)
|
||||
"^.+\\.(css|sass|scss)$": require.resolve("./__mocks__/styleMock.js"),
|
||||
// Handle image imports
|
||||
"^.+\\.(png|jpg|jpeg|gif|webp|avif|ico|bmp)$": require.resolve(`./__mocks__/fileMock.js`),
|
||||
// Keep .svg to it's own rule to make overriding easy
|
||||
"^.+\\.(svg)$": require.resolve(`./__mocks__/fileMock.js`),
|
||||
// Handle @next/font
|
||||
"@next/font/(.*)": require.resolve("./__mocks__/nextFontMock.js"),
|
||||
// Handle next/font
|
||||
"next/font/(.*)": require.resolve("./__mocks__/nextFontMock.js"),
|
||||
// Disable server-only
|
||||
"server-only": require.resolve("./__mocks__/empty.js"),
|
||||
// custom config comes last to ensure the above rules are matched,
|
||||
// fixes the case where @pages/(.*) -> src/pages/$! doesn't break
|
||||
// CSS/image mocks
|
||||
...resolvedJestConfig.moduleNameMapper || {}
|
||||
},
|
||||
testPathIgnorePatterns: [
|
||||
// Don't look for tests in node_modules
|
||||
"/node_modules/",
|
||||
// Don't look for tests in the Next.js build output
|
||||
"/.next/",
|
||||
// Custom config can append to testPathIgnorePatterns but not modify it
|
||||
// This is to ensure `.next` and `node_modules` are always excluded
|
||||
...resolvedJestConfig.testPathIgnorePatterns || []
|
||||
],
|
||||
transform: {
|
||||
// Use SWC to compile tests
|
||||
"^.+\\.(js|jsx|ts|tsx|mjs)$": [
|
||||
require.resolve("../swc/jest-transformer"),
|
||||
jestTransformerConfig
|
||||
],
|
||||
// Allow for appending/overriding the default transforms
|
||||
...resolvedJestConfig.transform || {}
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
// To match Next.js behavior node_modules is not transformed, only `transpiledPackages`
|
||||
...transpiled ? [
|
||||
`/node_modules/(?!.pnpm)(?!(${transpiled})/)`,
|
||||
`/node_modules/.pnpm/(?!(${transpiled.replace(/\//g, "\\+")})@)`
|
||||
] : [
|
||||
"/node_modules/"
|
||||
],
|
||||
// CSS modules are mocked so they don't need to be transformed
|
||||
"^.+\\.module\\.(css|sass|scss)$",
|
||||
// Custom config can append to transformIgnorePatterns but not modify it
|
||||
// This is to ensure `node_modules` and .module.css/sass/scss are always excluded
|
||||
...resolvedJestConfig.transformIgnorePatterns || []
|
||||
],
|
||||
watchPathIgnorePatterns: [
|
||||
// Don't re-run tests when the Next.js build output changes
|
||||
"/.next/",
|
||||
...resolvedJestConfig.watchPathIgnorePatterns || []
|
||||
]
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=jest.js.map
|
||||
1
node_modules/next/dist/build/jest/jest.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/jest.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/build/jest/jest.ts"],"names":["nextJest","getConfig","dir","conf","loadConfig","PHASE_TEST","loadClosestPackageJson","attempts","Error","mainPath","Array","join","require","e","setUpEnv","dev","loadEnvConfig","Log","options","customJestConfig","nextConfig","jsConfig","resolvedBaseUrl","isEsmProject","pagesDir","serverComponents","resolvedDir","resolve","packageConfig","type","findPagesDirResult","findPagesDir","appDir","result","loadJsConfig","resolvedJestConfig","loadBindings","experimental","useWasmBinary","lockfilePatchPromise","cur","transpiled","transpilePackages","jestTransformerConfig","modularizeImports","swcPlugins","compilerOptions","compiler","moduleNameMapper","testPathIgnorePatterns","transform","transformIgnorePatterns","replace","watchPathIgnorePatterns"],"mappings":";;;;+BAqCA;;;;;;;;;;;;;;;;;;;CAmBC,GACD;;;eAAwBA;;;qBAzDM;sBACA;+DACP;2BACI;qEACF;6DACJ;8BACQ;qBACsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAInD,eAAeC,UAAUC,GAAW;IAClC,MAAMC,OAAO,MAAMC,IAAAA,eAAU,EAACC,qBAAU,EAAEH;IAC1C,OAAOC;AACT;AAEA;;CAEC,GACD,SAASG,uBAAuBJ,GAAW,EAAEK,WAAW,CAAC;IACvD,IAAIA,WAAW,GAAG;QAChB,MAAM,IAAIC,MAAM;IAClB;IACA,IAAIC,WAAWF,aAAa,IAAI,OAAOG,MAAMH,UAAUI,IAAI,CAAC;IAC5D,IAAI;QACF,OAAOC,QAAQD,IAAAA,UAAI,EAACT,KAAKO,WAAW;IACtC,EAAE,OAAOI,GAAG;QACV,OAAOP,uBAAuBJ,KAAKK,WAAW;IAChD;AACF;AAEA,4EAA4E,GAC5E,SAASO,SAASZ,GAAW;IAC3B,MAAMa,MAAM;IACZC,IAAAA,kBAAa,EAACd,KAAKa,KAAKE;AAC1B;AAsBe,SAASjB,SAASkB,UAA4B,CAAC,CAAC;IAC7D,mBAAmB;IACnB,OAAO,CACLC;QAIA,oEAAoE;QACpE,qCAAqC;QACrC,OAAO;gBA8BcC,0BAULA;YAvCd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D;YACH;QACF;IACF;AACF"}
|
||||
2
node_modules/next/dist/build/jest/object-proxy.d.ts
generated
vendored
Normal file
2
node_modules/next/dist/build/jest/object-proxy.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
declare const _default: {};
|
||||
export default _default;
|
||||
50
node_modules/next/dist/build/jest/object-proxy.js
generated
vendored
Normal file
50
node_modules/next/dist/build/jest/object-proxy.js
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
/*
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Keyan Zhang
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/ // This file is largely based on https://github.com/keyz/identity-obj-proxy
|
||||
// Excludes the polyfill for below Node.js 6
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _default = new Proxy({}, {
|
||||
get: function getter(_target, key) {
|
||||
if (key === "__esModule") {
|
||||
return false;
|
||||
}
|
||||
return key;
|
||||
}
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=object-proxy.js.map
|
||||
1
node_modules/next/dist/build/jest/object-proxy.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/jest/object-proxy.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/build/jest/object-proxy.ts"],"names":["Proxy","get","getter","_target","key"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBA,GAEA,2EAA2E;AAC3E,4CAA4C;;;;;+BAC5C;;;eAAA;;;MAAA,WAAe,IAAIA,MACjB,CAAC,GACD;IACEC,KAAK,SAASC,OAAOC,OAAO,EAAEC,GAAG;QAC/B,IAAIA,QAAQ,cAAc;YACxB,OAAO;QACT;QACA,OAAOA;IACT;AACF"}
|
||||
Reference in New Issue
Block a user