mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
chore: bump jest dependencies (#20506)
This commit is contained in:
parent
50a4b29a27
commit
edb2455528
@ -49,7 +49,7 @@
|
||||
"@vue/server-test-utils": "^1.3.0",
|
||||
"@vue/test-utils": "^1.3.5",
|
||||
"@vue/vue2-jest": "^29.2.3",
|
||||
"babel-jest": "^28.1.1",
|
||||
"babel-jest": "^29.5.0",
|
||||
"chrome-launcher": "^0.15.2",
|
||||
"consola": "^2.15.3",
|
||||
"create-require": "^1.1.1",
|
||||
@ -66,7 +66,7 @@
|
||||
"glob": "^8.1.0",
|
||||
"got": "^12.6.0",
|
||||
"improved-yarn-audit": "^3.0.0",
|
||||
"jest": "^28.1.1",
|
||||
"jest": "^29.5.0",
|
||||
"jest-environment-jsdom": "^29.5.0",
|
||||
"jest-util": "^29.5.0",
|
||||
"jiti": "^1.18.2",
|
||||
|
@ -2,114 +2,114 @@
|
||||
|
||||
exports[`builder: buildContext should construct context 1`] = `
|
||||
TemplateContext {
|
||||
"templateFiles": Array [
|
||||
"templateFiles": [
|
||||
"template.js",
|
||||
],
|
||||
"templateVars": Object {
|
||||
"templateVars": {
|
||||
"appPath": "./App.js",
|
||||
"buildIndicator": undefined,
|
||||
"components": Object {
|
||||
"components": {
|
||||
"ErrorPage": "relativeBuild(test_error_page)",
|
||||
},
|
||||
"css": Array [
|
||||
"css": [
|
||||
"test.css",
|
||||
],
|
||||
"debug": "test_debug",
|
||||
"dir": Array [
|
||||
"dir": [
|
||||
"test_dir",
|
||||
],
|
||||
"env": "test_env",
|
||||
"extensions": "test|ext",
|
||||
"features": Object {
|
||||
"features": {
|
||||
"store": true,
|
||||
},
|
||||
"fetch": undefined,
|
||||
"globalName": "test_global",
|
||||
"globals": Array [
|
||||
"globals": [
|
||||
"globals",
|
||||
],
|
||||
"head": "test_head",
|
||||
"isDev": "test_dev",
|
||||
"isFullStatic": false,
|
||||
"isTest": "test_test",
|
||||
"layoutTransition": Object {
|
||||
"layoutTransition": {
|
||||
"name": "test_layout_trans",
|
||||
},
|
||||
"layouts": Object {
|
||||
"layouts": {
|
||||
"test-layout": "test.template",
|
||||
},
|
||||
"loading": "relativeBuild(test_src_dir, test-loading)",
|
||||
"messages": Object {
|
||||
"messages": {
|
||||
"test": "test message",
|
||||
},
|
||||
"mode": "test mode",
|
||||
"nuxtOptions": Object {
|
||||
"nuxtOptions": {
|
||||
"ErrorPage": "test_error_page",
|
||||
"build": Object {
|
||||
"splitChunks": Object {
|
||||
"build": {
|
||||
"splitChunks": {
|
||||
"testSC": true,
|
||||
},
|
||||
},
|
||||
"css": Array [
|
||||
"css": [
|
||||
"test.css",
|
||||
],
|
||||
"debug": "test_debug",
|
||||
"dev": "test_dev",
|
||||
"dir": Array [
|
||||
"dir": [
|
||||
"test_dir",
|
||||
],
|
||||
"env": "test_env",
|
||||
"extensions": Array [
|
||||
"extensions": [
|
||||
"test",
|
||||
"ext",
|
||||
],
|
||||
"features": Object {
|
||||
"features": {
|
||||
"store": true,
|
||||
},
|
||||
"globalName": "test_global",
|
||||
"head": "test_head",
|
||||
"layoutTransition": Object {
|
||||
"layoutTransition": {
|
||||
"name": "test_layout_trans",
|
||||
},
|
||||
"layouts": Object {
|
||||
"layouts": {
|
||||
"test-layout": "test.template",
|
||||
},
|
||||
"loading": "test-loading",
|
||||
"messages": Object {
|
||||
"messages": {
|
||||
"test": "test message",
|
||||
},
|
||||
"mode": "test mode",
|
||||
"pageTransition": Object {
|
||||
"pageTransition": {
|
||||
"name": "test_trans",
|
||||
},
|
||||
"rootDir": "test_root_dir",
|
||||
"router": Object {
|
||||
"router": {
|
||||
"route": "test",
|
||||
},
|
||||
"srcDir": "test_src_dir",
|
||||
"store": "test_store",
|
||||
"test": "test_test",
|
||||
"vue": Object {
|
||||
"vue": {
|
||||
"config": "test_config",
|
||||
},
|
||||
},
|
||||
"pageTransition": Object {
|
||||
"pageTransition": {
|
||||
"name": "test_trans",
|
||||
},
|
||||
"plugins": Array [
|
||||
"plugins": [
|
||||
"plugins",
|
||||
],
|
||||
"rootDir": "test_root_dir",
|
||||
"router": Object {
|
||||
"router": {
|
||||
"route": "test",
|
||||
},
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"testSC": true,
|
||||
},
|
||||
"srcDir": "test_src_dir",
|
||||
"store": "test_store",
|
||||
"uniqBy": [Function],
|
||||
"vue": Object {
|
||||
"vue": {
|
||||
"config": "test_config",
|
||||
},
|
||||
},
|
||||
|
@ -1,17 +1,17 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`config: options should return default nuxt config 1`] = `
|
||||
Object {
|
||||
{
|
||||
"ErrorPage": null,
|
||||
"__normalized__": true,
|
||||
"_modules": Array [
|
||||
"_modules": [
|
||||
"@nuxt/components",
|
||||
],
|
||||
"_nuxtConfigFile": "/var/nuxt/test/nuxt.config.js",
|
||||
"_nuxtConfigFiles": Array [
|
||||
"_nuxtConfigFiles": [
|
||||
"/var/nuxt/test/nuxt.config.js",
|
||||
],
|
||||
"alias": Object {
|
||||
"alias": {
|
||||
"@": "/var/nuxt/test",
|
||||
"@@": "/var/nuxt/test",
|
||||
"assets": "/var/nuxt/test/assets",
|
||||
@ -19,18 +19,18 @@ Object {
|
||||
"~": "/var/nuxt/test",
|
||||
"~~": "/var/nuxt/test",
|
||||
},
|
||||
"app": Object {
|
||||
"app": {
|
||||
"assetsPath": "/_nuxt/",
|
||||
"basePath": "/",
|
||||
"cdnURL": null,
|
||||
},
|
||||
"appTemplatePath": "/var/nuxt/test/.nuxt/views/app.template.html",
|
||||
"build": Object {
|
||||
"build": {
|
||||
"_publicPath": "/_nuxt/",
|
||||
"additionalExtensions": Array [],
|
||||
"additionalExtensions": [],
|
||||
"aggressiveCodeRemoval": false,
|
||||
"analyze": false,
|
||||
"babel": Object {
|
||||
"babel": {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": false,
|
||||
"configFile": false,
|
||||
@ -38,11 +38,11 @@ Object {
|
||||
"cache": false,
|
||||
"corejs": "auto",
|
||||
"cssSourceMap": false,
|
||||
"devMiddleware": Object {
|
||||
"devMiddleware": {
|
||||
"stats": "none",
|
||||
},
|
||||
"extractCSS": false,
|
||||
"filenames": Object {
|
||||
"filenames": {
|
||||
"app": [Function],
|
||||
"chunk": [Function],
|
||||
"css": [Function],
|
||||
@ -53,9 +53,9 @@ Object {
|
||||
"followSymlinks": false,
|
||||
"friendlyErrors": true,
|
||||
"hardSource": false,
|
||||
"hotMiddleware": Object {},
|
||||
"html": Object {
|
||||
"minify": Object {
|
||||
"hotMiddleware": {},
|
||||
"html": {
|
||||
"minify": {
|
||||
"collapseBooleanAttributes": true,
|
||||
"decodeEntities": true,
|
||||
"minifyCSS": true,
|
||||
@ -68,83 +68,83 @@ Object {
|
||||
},
|
||||
},
|
||||
"indicator": false,
|
||||
"loaders": Object {
|
||||
"css": Object {
|
||||
"loaders": {
|
||||
"css": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"compileType": "icss",
|
||||
},
|
||||
"sourceMap": false,
|
||||
},
|
||||
"cssModules": Object {
|
||||
"cssModules": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"localIdentName": "[local]_[hash:base64:5]",
|
||||
},
|
||||
"sourceMap": false,
|
||||
},
|
||||
"file": Object {
|
||||
"file": {
|
||||
"esModule": false,
|
||||
},
|
||||
"fontUrl": Object {
|
||||
"fontUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"imgUrl": Object {
|
||||
"imgUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"less": Object {
|
||||
"less": {
|
||||
"sourceMap": false,
|
||||
},
|
||||
"pugPlain": Object {},
|
||||
"sass": Object {
|
||||
"sassOptions": Object {
|
||||
"pugPlain": {},
|
||||
"sass": {
|
||||
"sassOptions": {
|
||||
"indentedSyntax": true,
|
||||
},
|
||||
"sourceMap": false,
|
||||
},
|
||||
"scss": Object {
|
||||
"scss": {
|
||||
"sourceMap": false,
|
||||
},
|
||||
"stylus": Object {
|
||||
"stylus": {
|
||||
"sourceMap": false,
|
||||
},
|
||||
"vue": Object {
|
||||
"vue": {
|
||||
"productionMode": true,
|
||||
"transformAssetUrls": Object {
|
||||
"transformAssetUrls": {
|
||||
"embed": "src",
|
||||
"object": "src",
|
||||
"source": "src",
|
||||
"video": "src",
|
||||
},
|
||||
},
|
||||
"vueStyle": Object {
|
||||
"vueStyle": {
|
||||
"sourceMap": false,
|
||||
},
|
||||
},
|
||||
"loadingScreen": false,
|
||||
"optimization": Object {
|
||||
"optimization": {
|
||||
"minimize": true,
|
||||
"minimizer": undefined,
|
||||
"runtimeChunk": "single",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"automaticNameDelimiter": "/",
|
||||
"cacheGroups": Object {},
|
||||
"cacheGroups": {},
|
||||
"chunks": "all",
|
||||
},
|
||||
},
|
||||
"optimizeCSS": false,
|
||||
"parallel": false,
|
||||
"plugins": Array [],
|
||||
"postcss": Object {
|
||||
"postcssOptions": Object {},
|
||||
"plugins": [],
|
||||
"postcss": {
|
||||
"postcssOptions": {},
|
||||
},
|
||||
"profile": false,
|
||||
"publicPath": "/_nuxt/",
|
||||
"quiet": true,
|
||||
"serverURLPolyfill": "url",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"commons": true,
|
||||
"layouts": false,
|
||||
"pages": true,
|
||||
@ -152,25 +152,25 @@ Object {
|
||||
"ssr": true,
|
||||
"standalone": false,
|
||||
"stats": false,
|
||||
"styleResources": Object {},
|
||||
"styleResources": {},
|
||||
"template": undefined,
|
||||
"templates": Array [],
|
||||
"terser": Object {},
|
||||
"transpile": Array [],
|
||||
"warningIgnoreFilters": Array [],
|
||||
"watch": Array [],
|
||||
"templates": [],
|
||||
"terser": {},
|
||||
"transpile": [],
|
||||
"warningIgnoreFilters": [],
|
||||
"watch": [],
|
||||
},
|
||||
"buildDir": "/var/nuxt/test/.nuxt",
|
||||
"buildModules": Array [],
|
||||
"cli": Object {
|
||||
"badgeMessages": Array [],
|
||||
"buildModules": [],
|
||||
"cli": {
|
||||
"badgeMessages": [],
|
||||
"bannerColor": "green",
|
||||
},
|
||||
"createRequire": [MockFunction],
|
||||
"css": Array [],
|
||||
"css": [],
|
||||
"debug": false,
|
||||
"dev": false,
|
||||
"dir": Object {
|
||||
"dir": {
|
||||
"app": "app",
|
||||
"assets": "assets",
|
||||
"layouts": "layouts",
|
||||
@ -180,13 +180,13 @@ Object {
|
||||
"store": "store",
|
||||
},
|
||||
"editor": undefined,
|
||||
"env": Object {},
|
||||
"env": {},
|
||||
"extendPlugins": null,
|
||||
"extensions": Array [
|
||||
"extensions": [
|
||||
"js",
|
||||
"mjs",
|
||||
],
|
||||
"features": Object {
|
||||
"features": {
|
||||
"asyncData": true,
|
||||
"clientOnline": true,
|
||||
"clientPrefetch": true,
|
||||
@ -201,28 +201,28 @@ Object {
|
||||
"transitions": true,
|
||||
"validate": true,
|
||||
},
|
||||
"fetch": Object {
|
||||
"fetch": {
|
||||
"client": true,
|
||||
"server": true,
|
||||
},
|
||||
"generate": Object {
|
||||
"cache": Object {
|
||||
"globbyOptions": Object {
|
||||
"generate": {
|
||||
"cache": {
|
||||
"globbyOptions": {
|
||||
"gitignore": true,
|
||||
},
|
||||
"ignore": Array [],
|
||||
"ignore": [],
|
||||
},
|
||||
"concurrency": 500,
|
||||
"crawler": true,
|
||||
"dir": "/var/nuxt/test/dist",
|
||||
"exclude": Array [],
|
||||
"exclude": [],
|
||||
"fallback": "200.html",
|
||||
"ignoreEnv": false,
|
||||
"interval": 0,
|
||||
"manifest": true,
|
||||
"nojekyll": true,
|
||||
"routes": Array [],
|
||||
"staticAssets": Object {
|
||||
"routes": [],
|
||||
"staticAssets": {
|
||||
"base": "/_nuxt/static",
|
||||
"dir": "static",
|
||||
"version": "x",
|
||||
@ -231,7 +231,7 @@ Object {
|
||||
"subFolders": true,
|
||||
},
|
||||
"globalName": "nuxt",
|
||||
"globals": Object {
|
||||
"globals": {
|
||||
"context": [Function],
|
||||
"id": [Function],
|
||||
"loadedCallback": [Function],
|
||||
@ -239,26 +239,26 @@ Object {
|
||||
"pluginPrefix": [Function],
|
||||
"readyCallback": [Function],
|
||||
},
|
||||
"head": Object {
|
||||
"link": Array [],
|
||||
"meta": Array [],
|
||||
"script": Array [],
|
||||
"style": Array [],
|
||||
"head": {
|
||||
"link": [],
|
||||
"meta": [],
|
||||
"script": [],
|
||||
"style": [],
|
||||
},
|
||||
"hooks": null,
|
||||
"ignore": Array [
|
||||
"ignore": [
|
||||
"**/*.test.*",
|
||||
"**/*.spec.*",
|
||||
"**/-*.*",
|
||||
],
|
||||
"ignoreOptions": undefined,
|
||||
"ignorePrefix": "-",
|
||||
"layoutTransition": Object {
|
||||
"layoutTransition": {
|
||||
"mode": "out-in",
|
||||
"name": "layout",
|
||||
},
|
||||
"layouts": Object {},
|
||||
"loading": Object {
|
||||
"layouts": {},
|
||||
"loading": {
|
||||
"color": "black",
|
||||
"continuous": false,
|
||||
"css": true,
|
||||
@ -268,7 +268,7 @@ Object {
|
||||
"rtl": false,
|
||||
"throttle": 200,
|
||||
},
|
||||
"loadingIndicator": Object {
|
||||
"loadingIndicator": {
|
||||
"background": "white",
|
||||
"color": "black",
|
||||
"color2": "#F5F5F5",
|
||||
@ -276,7 +276,7 @@ Object {
|
||||
"loading": "Loading...",
|
||||
"name": "default",
|
||||
},
|
||||
"messages": Object {
|
||||
"messages": {
|
||||
"back_to_home": "Back to the home page",
|
||||
"client_error": "Error",
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
@ -288,30 +288,30 @@ Object {
|
||||
},
|
||||
"mode": "universal",
|
||||
"modern": undefined,
|
||||
"modes": Object {
|
||||
"spa": Object {
|
||||
"build": Object {
|
||||
"modes": {
|
||||
"spa": {
|
||||
"build": {
|
||||
"ssr": false,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": false,
|
||||
},
|
||||
},
|
||||
"universal": Object {
|
||||
"build": Object {
|
||||
"universal": {
|
||||
"build": {
|
||||
"ssr": true,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": true,
|
||||
},
|
||||
},
|
||||
},
|
||||
"modules": Array [],
|
||||
"modulesDir": Array [
|
||||
"modules": [],
|
||||
"modulesDir": [
|
||||
"/var/nuxt/node_modules",
|
||||
"/var/nuxt/test/node_modules",
|
||||
],
|
||||
"pageTransition": Object {
|
||||
"pageTransition": {
|
||||
"appear": false,
|
||||
"appearActiveClass": "appear-active",
|
||||
"appearClass": "appear",
|
||||
@ -319,44 +319,44 @@ Object {
|
||||
"mode": "out-in",
|
||||
"name": "page",
|
||||
},
|
||||
"plugins": Array [],
|
||||
"privateRuntimeConfig": Object {},
|
||||
"publicRuntimeConfig": Object {
|
||||
"_app": Object {
|
||||
"plugins": [],
|
||||
"privateRuntimeConfig": {},
|
||||
"publicRuntimeConfig": {
|
||||
"_app": {
|
||||
"assetsPath": "/_nuxt/",
|
||||
"basePath": "/",
|
||||
"cdnURL": null,
|
||||
},
|
||||
},
|
||||
"render": Object {
|
||||
"bundleRenderer": Object {
|
||||
"render": {
|
||||
"bundleRenderer": {
|
||||
"runInNewContext": false,
|
||||
"shouldPrefetch": [Function],
|
||||
"shouldPreload": [Function],
|
||||
},
|
||||
"compressor": Object {
|
||||
"compressor": {
|
||||
"threshold": 0,
|
||||
},
|
||||
"crossorigin": undefined,
|
||||
"csp": false,
|
||||
"dist": Object {
|
||||
"dist": {
|
||||
"index": false,
|
||||
"maxAge": "1y",
|
||||
},
|
||||
"etag": Object {
|
||||
"etag": {
|
||||
"weak": false,
|
||||
},
|
||||
"fallback": Object {
|
||||
"dist": Object {},
|
||||
"static": Object {
|
||||
"handlers": Object {
|
||||
"fallback": {
|
||||
"dist": {},
|
||||
"static": {
|
||||
"handlers": {
|
||||
".htm": false,
|
||||
".html": false,
|
||||
},
|
||||
"skipUnknown": true,
|
||||
},
|
||||
},
|
||||
"http2": Object {
|
||||
"http2": {
|
||||
"push": false,
|
||||
"pushAssets": null,
|
||||
"shouldPush": null,
|
||||
@ -364,40 +364,40 @@ Object {
|
||||
"resourceHints": true,
|
||||
"ssr": true,
|
||||
"ssrLog": false,
|
||||
"static": Object {
|
||||
"static": {
|
||||
"prefix": true,
|
||||
},
|
||||
},
|
||||
"rootDir": "/var/nuxt/test",
|
||||
"router": Object {
|
||||
"router": {
|
||||
"base": "/",
|
||||
"extendRoutes": null,
|
||||
"fallback": false,
|
||||
"linkActiveClass": "nuxt-link-active",
|
||||
"linkExactActiveClass": "nuxt-link-exact-active",
|
||||
"linkPrefetchedClass": false,
|
||||
"middleware": Array [],
|
||||
"middleware": [],
|
||||
"mode": "history",
|
||||
"parseQuery": false,
|
||||
"prefetchLinks": true,
|
||||
"prefetchPayloads": true,
|
||||
"routeNameSplitter": "-",
|
||||
"routes": Array [],
|
||||
"routes": [],
|
||||
"scrollBehavior": null,
|
||||
"stringifyQuery": false,
|
||||
"trailingSlash": undefined,
|
||||
},
|
||||
"server": Object {
|
||||
"server": {
|
||||
"host": "localhost",
|
||||
"https": false,
|
||||
"port": 3000,
|
||||
"socket": undefined,
|
||||
"timing": false,
|
||||
},
|
||||
"serverMiddleware": Array [],
|
||||
"serverMiddleware": [],
|
||||
"srcDir": "/var/nuxt/test",
|
||||
"ssr": true,
|
||||
"styleExtensions": Array [
|
||||
"styleExtensions": [
|
||||
"css",
|
||||
"pcss",
|
||||
"postcss",
|
||||
@ -409,22 +409,22 @@ Object {
|
||||
],
|
||||
"target": "server",
|
||||
"test": true,
|
||||
"vue": Object {
|
||||
"config": Object {
|
||||
"vue": {
|
||||
"config": {
|
||||
"performance": false,
|
||||
"silent": true,
|
||||
},
|
||||
},
|
||||
"vueMeta": null,
|
||||
"watch": Array [
|
||||
"watch": [
|
||||
"/var/nuxt/test/nuxt.config.js",
|
||||
],
|
||||
"watchers": Object {
|
||||
"chokidar": Object {
|
||||
"watchers": {
|
||||
"chokidar": {
|
||||
"ignoreInitial": true,
|
||||
},
|
||||
"rewatchOnRawEvents": undefined,
|
||||
"webpack": Object {
|
||||
"webpack": {
|
||||
"aggregateTimeout": 1000,
|
||||
},
|
||||
},
|
||||
|
@ -1,16 +1,16 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`config should return default nuxt configurations 1`] = `
|
||||
Object {
|
||||
{
|
||||
"ErrorPage": null,
|
||||
"_modules": Array [],
|
||||
"_modules": [],
|
||||
"_nuxtConfigFile": undefined,
|
||||
"alias": Object {},
|
||||
"build": Object {
|
||||
"additionalExtensions": Array [],
|
||||
"alias": {},
|
||||
"build": {
|
||||
"additionalExtensions": [],
|
||||
"aggressiveCodeRemoval": false,
|
||||
"analyze": false,
|
||||
"babel": Object {
|
||||
"babel": {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": undefined,
|
||||
"configFile": false,
|
||||
@ -18,11 +18,11 @@ Object {
|
||||
"cache": false,
|
||||
"corejs": "auto",
|
||||
"cssSourceMap": undefined,
|
||||
"devMiddleware": Object {
|
||||
"devMiddleware": {
|
||||
"stats": "none",
|
||||
},
|
||||
"extractCSS": false,
|
||||
"filenames": Object {
|
||||
"filenames": {
|
||||
"app": [Function],
|
||||
"chunk": [Function],
|
||||
"css": [Function],
|
||||
@ -33,9 +33,9 @@ Object {
|
||||
"followSymlinks": false,
|
||||
"friendlyErrors": true,
|
||||
"hardSource": false,
|
||||
"hotMiddleware": Object {},
|
||||
"html": Object {
|
||||
"minify": Object {
|
||||
"hotMiddleware": {},
|
||||
"html": {
|
||||
"minify": {
|
||||
"collapseBooleanAttributes": true,
|
||||
"decodeEntities": true,
|
||||
"minifyCSS": true,
|
||||
@ -47,108 +47,108 @@ Object {
|
||||
"useShortDoctype": true,
|
||||
},
|
||||
},
|
||||
"indicator": Object {
|
||||
"indicator": {
|
||||
"backgroundColor": "#2E495E",
|
||||
"color": "#00C48D",
|
||||
"position": "bottom-right",
|
||||
},
|
||||
"loaders": Object {
|
||||
"css": Object {
|
||||
"loaders": {
|
||||
"css": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"compileType": "icss",
|
||||
},
|
||||
},
|
||||
"cssModules": Object {
|
||||
"cssModules": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"localIdentName": "[local]_[hash:base64:5]",
|
||||
},
|
||||
},
|
||||
"file": Object {
|
||||
"file": {
|
||||
"esModule": false,
|
||||
},
|
||||
"fontUrl": Object {
|
||||
"fontUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"imgUrl": Object {
|
||||
"imgUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"less": Object {},
|
||||
"pugPlain": Object {},
|
||||
"sass": Object {
|
||||
"sassOptions": Object {
|
||||
"less": {},
|
||||
"pugPlain": {},
|
||||
"sass": {
|
||||
"sassOptions": {
|
||||
"indentedSyntax": true,
|
||||
},
|
||||
},
|
||||
"scss": Object {},
|
||||
"stylus": Object {},
|
||||
"vue": Object {
|
||||
"transformAssetUrls": Object {
|
||||
"scss": {},
|
||||
"stylus": {},
|
||||
"vue": {
|
||||
"transformAssetUrls": {
|
||||
"embed": "src",
|
||||
"object": "src",
|
||||
"source": "src",
|
||||
"video": "src",
|
||||
},
|
||||
},
|
||||
"vueStyle": Object {},
|
||||
"vueStyle": {},
|
||||
},
|
||||
"loadingScreen": Object {},
|
||||
"optimization": Object {
|
||||
"loadingScreen": {},
|
||||
"optimization": {
|
||||
"minimize": undefined,
|
||||
"minimizer": undefined,
|
||||
"runtimeChunk": "single",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"automaticNameDelimiter": "/",
|
||||
"cacheGroups": Object {},
|
||||
"cacheGroups": {},
|
||||
"chunks": "all",
|
||||
},
|
||||
},
|
||||
"optimizeCSS": undefined,
|
||||
"parallel": false,
|
||||
"plugins": Array [],
|
||||
"postcss": Object {
|
||||
"postcssOptions": Object {},
|
||||
"plugins": [],
|
||||
"postcss": {
|
||||
"postcssOptions": {},
|
||||
},
|
||||
"profile": false,
|
||||
"publicPath": "/_nuxt/",
|
||||
"quiet": true,
|
||||
"serverURLPolyfill": "url",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"commons": true,
|
||||
"layouts": false,
|
||||
"pages": true,
|
||||
},
|
||||
"ssr": undefined,
|
||||
"standalone": false,
|
||||
"stats": Object {
|
||||
"excludeAssets": Array [
|
||||
"stats": {
|
||||
"excludeAssets": [
|
||||
/\\.map\\$/,
|
||||
/index\\\\\\.\\.\\+\\\\\\.html\\$/,
|
||||
/vue-ssr-\\(client\\|modern\\)-manifest\\.json/,
|
||||
],
|
||||
},
|
||||
"styleResources": Object {},
|
||||
"styleResources": {},
|
||||
"template": undefined,
|
||||
"templates": Array [],
|
||||
"terser": Object {},
|
||||
"transpile": Array [],
|
||||
"warningIgnoreFilters": Array [],
|
||||
"watch": Array [],
|
||||
"templates": [],
|
||||
"terser": {},
|
||||
"transpile": [],
|
||||
"warningIgnoreFilters": [],
|
||||
"watch": [],
|
||||
},
|
||||
"buildDir": ".nuxt",
|
||||
"buildModules": Array [],
|
||||
"cli": Object {
|
||||
"badgeMessages": Array [],
|
||||
"buildModules": [],
|
||||
"cli": {
|
||||
"badgeMessages": [],
|
||||
"bannerColor": "green",
|
||||
},
|
||||
"createRequire": undefined,
|
||||
"css": Array [],
|
||||
"css": [],
|
||||
"debug": undefined,
|
||||
"dev": false,
|
||||
"dir": Object {
|
||||
"dir": {
|
||||
"app": "app",
|
||||
"assets": "assets",
|
||||
"layouts": "layouts",
|
||||
@ -158,10 +158,10 @@ Object {
|
||||
"store": "store",
|
||||
},
|
||||
"editor": undefined,
|
||||
"env": Object {},
|
||||
"env": {},
|
||||
"extendPlugins": null,
|
||||
"extensions": Array [],
|
||||
"features": Object {
|
||||
"extensions": [],
|
||||
"features": {
|
||||
"asyncData": true,
|
||||
"clientOnline": true,
|
||||
"clientPrefetch": true,
|
||||
@ -176,28 +176,28 @@ Object {
|
||||
"transitions": true,
|
||||
"validate": true,
|
||||
},
|
||||
"fetch": Object {
|
||||
"fetch": {
|
||||
"client": true,
|
||||
"server": true,
|
||||
},
|
||||
"generate": Object {
|
||||
"cache": Object {
|
||||
"globbyOptions": Object {
|
||||
"generate": {
|
||||
"cache": {
|
||||
"globbyOptions": {
|
||||
"gitignore": true,
|
||||
},
|
||||
"ignore": Array [],
|
||||
"ignore": [],
|
||||
},
|
||||
"concurrency": 500,
|
||||
"crawler": true,
|
||||
"dir": "dist",
|
||||
"exclude": Array [],
|
||||
"exclude": [],
|
||||
"fallback": "200.html",
|
||||
"ignoreEnv": false,
|
||||
"interval": 0,
|
||||
"manifest": true,
|
||||
"nojekyll": true,
|
||||
"routes": Array [],
|
||||
"staticAssets": Object {
|
||||
"routes": [],
|
||||
"staticAssets": {
|
||||
"base": undefined,
|
||||
"dir": "static",
|
||||
"version": undefined,
|
||||
@ -206,7 +206,7 @@ Object {
|
||||
"subFolders": true,
|
||||
},
|
||||
"globalName": undefined,
|
||||
"globals": Object {
|
||||
"globals": {
|
||||
"context": [Function],
|
||||
"id": [Function],
|
||||
"loadedCallback": [Function],
|
||||
@ -214,25 +214,25 @@ Object {
|
||||
"pluginPrefix": [Function],
|
||||
"readyCallback": [Function],
|
||||
},
|
||||
"head": Object {
|
||||
"link": Array [],
|
||||
"meta": Array [],
|
||||
"script": Array [],
|
||||
"style": Array [],
|
||||
"head": {
|
||||
"link": [],
|
||||
"meta": [],
|
||||
"script": [],
|
||||
"style": [],
|
||||
},
|
||||
"hooks": null,
|
||||
"ignore": Array [
|
||||
"ignore": [
|
||||
"**/*.test.*",
|
||||
"**/*.spec.*",
|
||||
],
|
||||
"ignoreOptions": undefined,
|
||||
"ignorePrefix": "-",
|
||||
"layoutTransition": Object {
|
||||
"layoutTransition": {
|
||||
"mode": "out-in",
|
||||
"name": "layout",
|
||||
},
|
||||
"layouts": Object {},
|
||||
"loading": Object {
|
||||
"layouts": {},
|
||||
"loading": {
|
||||
"color": "black",
|
||||
"continuous": false,
|
||||
"css": true,
|
||||
@ -243,7 +243,7 @@ Object {
|
||||
"throttle": 200,
|
||||
},
|
||||
"loadingIndicator": "default",
|
||||
"messages": Object {
|
||||
"messages": {
|
||||
"back_to_home": "Back to the home page",
|
||||
"client_error": "Error",
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
@ -255,29 +255,29 @@ Object {
|
||||
},
|
||||
"mode": undefined,
|
||||
"modern": undefined,
|
||||
"modes": Object {
|
||||
"spa": Object {
|
||||
"build": Object {
|
||||
"modes": {
|
||||
"spa": {
|
||||
"build": {
|
||||
"ssr": false,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": false,
|
||||
},
|
||||
},
|
||||
"universal": Object {
|
||||
"build": Object {
|
||||
"universal": {
|
||||
"build": {
|
||||
"ssr": true,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": true,
|
||||
},
|
||||
},
|
||||
},
|
||||
"modules": Array [],
|
||||
"modulesDir": Array [
|
||||
"modules": [],
|
||||
"modulesDir": [
|
||||
"node_modules",
|
||||
],
|
||||
"pageTransition": Object {
|
||||
"pageTransition": {
|
||||
"appear": false,
|
||||
"appearActiveClass": "appear-active",
|
||||
"appearClass": "appear",
|
||||
@ -285,38 +285,38 @@ Object {
|
||||
"mode": "out-in",
|
||||
"name": "page",
|
||||
},
|
||||
"plugins": Array [],
|
||||
"privateRuntimeConfig": Object {},
|
||||
"publicRuntimeConfig": Object {},
|
||||
"render": Object {
|
||||
"bundleRenderer": Object {
|
||||
"plugins": [],
|
||||
"privateRuntimeConfig": {},
|
||||
"publicRuntimeConfig": {},
|
||||
"render": {
|
||||
"bundleRenderer": {
|
||||
"runInNewContext": undefined,
|
||||
"shouldPrefetch": [Function],
|
||||
"shouldPreload": [Function],
|
||||
},
|
||||
"compressor": Object {
|
||||
"compressor": {
|
||||
"threshold": 0,
|
||||
},
|
||||
"crossorigin": undefined,
|
||||
"csp": false,
|
||||
"dist": Object {
|
||||
"dist": {
|
||||
"index": false,
|
||||
"maxAge": "1y",
|
||||
},
|
||||
"etag": Object {
|
||||
"etag": {
|
||||
"weak": false,
|
||||
},
|
||||
"fallback": Object {
|
||||
"dist": Object {},
|
||||
"static": Object {
|
||||
"handlers": Object {
|
||||
"fallback": {
|
||||
"dist": {},
|
||||
"static": {
|
||||
"handlers": {
|
||||
".htm": false,
|
||||
".html": false,
|
||||
},
|
||||
"skipUnknown": true,
|
||||
},
|
||||
},
|
||||
"http2": Object {
|
||||
"http2": {
|
||||
"push": false,
|
||||
"pushAssets": null,
|
||||
"shouldPush": null,
|
||||
@ -324,39 +324,39 @@ Object {
|
||||
"resourceHints": true,
|
||||
"ssr": undefined,
|
||||
"ssrLog": undefined,
|
||||
"static": Object {
|
||||
"static": {
|
||||
"prefix": true,
|
||||
},
|
||||
},
|
||||
"router": Object {
|
||||
"router": {
|
||||
"base": "/",
|
||||
"extendRoutes": null,
|
||||
"fallback": false,
|
||||
"linkActiveClass": "nuxt-link-active",
|
||||
"linkExactActiveClass": "nuxt-link-exact-active",
|
||||
"linkPrefetchedClass": false,
|
||||
"middleware": Array [],
|
||||
"middleware": [],
|
||||
"mode": "history",
|
||||
"parseQuery": false,
|
||||
"prefetchLinks": true,
|
||||
"prefetchPayloads": true,
|
||||
"routeNameSplitter": "-",
|
||||
"routes": Array [],
|
||||
"routes": [],
|
||||
"scrollBehavior": null,
|
||||
"stringifyQuery": false,
|
||||
"trailingSlash": undefined,
|
||||
},
|
||||
"server": Object {
|
||||
"server": {
|
||||
"host": "localhost",
|
||||
"https": false,
|
||||
"port": 3000,
|
||||
"socket": undefined,
|
||||
"timing": false,
|
||||
},
|
||||
"serverMiddleware": Array [],
|
||||
"serverMiddleware": [],
|
||||
"srcDir": undefined,
|
||||
"ssr": true,
|
||||
"styleExtensions": Array [
|
||||
"styleExtensions": [
|
||||
"css",
|
||||
"pcss",
|
||||
"postcss",
|
||||
@ -368,20 +368,20 @@ Object {
|
||||
],
|
||||
"target": "server",
|
||||
"test": true,
|
||||
"vue": Object {
|
||||
"config": Object {
|
||||
"vue": {
|
||||
"config": {
|
||||
"performance": undefined,
|
||||
"silent": undefined,
|
||||
},
|
||||
},
|
||||
"vueMeta": null,
|
||||
"watch": Array [],
|
||||
"watchers": Object {
|
||||
"chokidar": Object {
|
||||
"watch": [],
|
||||
"watchers": {
|
||||
"chokidar": {
|
||||
"ignoreInitial": true,
|
||||
},
|
||||
"rewatchOnRawEvents": undefined,
|
||||
"webpack": Object {
|
||||
"webpack": {
|
||||
"aggregateTimeout": 1000,
|
||||
},
|
||||
},
|
||||
@ -389,16 +389,16 @@ Object {
|
||||
`;
|
||||
|
||||
exports[`config should return nuxt configurations with custom env 1`] = `
|
||||
Object {
|
||||
{
|
||||
"ErrorPage": null,
|
||||
"_modules": Array [],
|
||||
"_modules": [],
|
||||
"_nuxtConfigFile": undefined,
|
||||
"alias": Object {},
|
||||
"build": Object {
|
||||
"additionalExtensions": Array [],
|
||||
"alias": {},
|
||||
"build": {
|
||||
"additionalExtensions": [],
|
||||
"aggressiveCodeRemoval": false,
|
||||
"analyze": false,
|
||||
"babel": Object {
|
||||
"babel": {
|
||||
"babelrc": false,
|
||||
"cacheDirectory": undefined,
|
||||
"configFile": false,
|
||||
@ -406,11 +406,11 @@ Object {
|
||||
"cache": false,
|
||||
"corejs": "auto",
|
||||
"cssSourceMap": undefined,
|
||||
"devMiddleware": Object {
|
||||
"devMiddleware": {
|
||||
"stats": "none",
|
||||
},
|
||||
"extractCSS": false,
|
||||
"filenames": Object {
|
||||
"filenames": {
|
||||
"app": [Function],
|
||||
"chunk": [Function],
|
||||
"css": [Function],
|
||||
@ -421,9 +421,9 @@ Object {
|
||||
"followSymlinks": false,
|
||||
"friendlyErrors": true,
|
||||
"hardSource": false,
|
||||
"hotMiddleware": Object {},
|
||||
"html": Object {
|
||||
"minify": Object {
|
||||
"hotMiddleware": {},
|
||||
"html": {
|
||||
"minify": {
|
||||
"collapseBooleanAttributes": true,
|
||||
"decodeEntities": true,
|
||||
"minifyCSS": true,
|
||||
@ -435,108 +435,108 @@ Object {
|
||||
"useShortDoctype": true,
|
||||
},
|
||||
},
|
||||
"indicator": Object {
|
||||
"indicator": {
|
||||
"backgroundColor": "#2E495E",
|
||||
"color": "#00C48D",
|
||||
"position": "bottom-right",
|
||||
},
|
||||
"loaders": Object {
|
||||
"css": Object {
|
||||
"loaders": {
|
||||
"css": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"compileType": "icss",
|
||||
},
|
||||
},
|
||||
"cssModules": Object {
|
||||
"cssModules": {
|
||||
"esModule": false,
|
||||
"modules": Object {
|
||||
"modules": {
|
||||
"localIdentName": "[local]_[hash:base64:5]",
|
||||
},
|
||||
},
|
||||
"file": Object {
|
||||
"file": {
|
||||
"esModule": false,
|
||||
},
|
||||
"fontUrl": Object {
|
||||
"fontUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"imgUrl": Object {
|
||||
"imgUrl": {
|
||||
"esModule": false,
|
||||
"limit": 1000,
|
||||
},
|
||||
"less": Object {},
|
||||
"pugPlain": Object {},
|
||||
"sass": Object {
|
||||
"sassOptions": Object {
|
||||
"less": {},
|
||||
"pugPlain": {},
|
||||
"sass": {
|
||||
"sassOptions": {
|
||||
"indentedSyntax": true,
|
||||
},
|
||||
},
|
||||
"scss": Object {},
|
||||
"stylus": Object {},
|
||||
"vue": Object {
|
||||
"transformAssetUrls": Object {
|
||||
"scss": {},
|
||||
"stylus": {},
|
||||
"vue": {
|
||||
"transformAssetUrls": {
|
||||
"embed": "src",
|
||||
"object": "src",
|
||||
"source": "src",
|
||||
"video": "src",
|
||||
},
|
||||
},
|
||||
"vueStyle": Object {},
|
||||
"vueStyle": {},
|
||||
},
|
||||
"loadingScreen": Object {},
|
||||
"optimization": Object {
|
||||
"loadingScreen": {},
|
||||
"optimization": {
|
||||
"minimize": undefined,
|
||||
"minimizer": undefined,
|
||||
"runtimeChunk": "single",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"automaticNameDelimiter": "/",
|
||||
"cacheGroups": Object {},
|
||||
"cacheGroups": {},
|
||||
"chunks": "all",
|
||||
},
|
||||
},
|
||||
"optimizeCSS": undefined,
|
||||
"parallel": false,
|
||||
"plugins": Array [],
|
||||
"postcss": Object {
|
||||
"postcssOptions": Object {},
|
||||
"plugins": [],
|
||||
"postcss": {
|
||||
"postcssOptions": {},
|
||||
},
|
||||
"profile": false,
|
||||
"publicPath": "/_nuxt/",
|
||||
"quiet": true,
|
||||
"serverURLPolyfill": "url",
|
||||
"splitChunks": Object {
|
||||
"splitChunks": {
|
||||
"commons": true,
|
||||
"layouts": false,
|
||||
"pages": true,
|
||||
},
|
||||
"ssr": undefined,
|
||||
"standalone": false,
|
||||
"stats": Object {
|
||||
"excludeAssets": Array [
|
||||
"stats": {
|
||||
"excludeAssets": [
|
||||
/\\.map\\$/,
|
||||
/index\\\\\\.\\.\\+\\\\\\.html\\$/,
|
||||
/vue-ssr-\\(client\\|modern\\)-manifest\\.json/,
|
||||
],
|
||||
},
|
||||
"styleResources": Object {},
|
||||
"styleResources": {},
|
||||
"template": undefined,
|
||||
"templates": Array [],
|
||||
"terser": Object {},
|
||||
"transpile": Array [],
|
||||
"warningIgnoreFilters": Array [],
|
||||
"watch": Array [],
|
||||
"templates": [],
|
||||
"terser": {},
|
||||
"transpile": [],
|
||||
"warningIgnoreFilters": [],
|
||||
"watch": [],
|
||||
},
|
||||
"buildDir": ".nuxt",
|
||||
"buildModules": Array [],
|
||||
"cli": Object {
|
||||
"badgeMessages": Array [],
|
||||
"buildModules": [],
|
||||
"cli": {
|
||||
"badgeMessages": [],
|
||||
"bannerColor": "green",
|
||||
},
|
||||
"createRequire": undefined,
|
||||
"css": Array [],
|
||||
"css": [],
|
||||
"debug": undefined,
|
||||
"dev": false,
|
||||
"dir": Object {
|
||||
"dir": {
|
||||
"app": "app",
|
||||
"assets": "assets",
|
||||
"layouts": "layouts",
|
||||
@ -546,10 +546,10 @@ Object {
|
||||
"store": "store",
|
||||
},
|
||||
"editor": undefined,
|
||||
"env": Object {},
|
||||
"env": {},
|
||||
"extendPlugins": null,
|
||||
"extensions": Array [],
|
||||
"features": Object {
|
||||
"extensions": [],
|
||||
"features": {
|
||||
"asyncData": true,
|
||||
"clientOnline": true,
|
||||
"clientPrefetch": true,
|
||||
@ -564,28 +564,28 @@ Object {
|
||||
"transitions": true,
|
||||
"validate": true,
|
||||
},
|
||||
"fetch": Object {
|
||||
"fetch": {
|
||||
"client": true,
|
||||
"server": true,
|
||||
},
|
||||
"generate": Object {
|
||||
"cache": Object {
|
||||
"globbyOptions": Object {
|
||||
"generate": {
|
||||
"cache": {
|
||||
"globbyOptions": {
|
||||
"gitignore": true,
|
||||
},
|
||||
"ignore": Array [],
|
||||
"ignore": [],
|
||||
},
|
||||
"concurrency": 500,
|
||||
"crawler": true,
|
||||
"dir": "dist",
|
||||
"exclude": Array [],
|
||||
"exclude": [],
|
||||
"fallback": "200.html",
|
||||
"ignoreEnv": false,
|
||||
"interval": 0,
|
||||
"manifest": true,
|
||||
"nojekyll": true,
|
||||
"routes": Array [],
|
||||
"staticAssets": Object {
|
||||
"routes": [],
|
||||
"staticAssets": {
|
||||
"base": undefined,
|
||||
"dir": "static",
|
||||
"version": undefined,
|
||||
@ -594,7 +594,7 @@ Object {
|
||||
"subFolders": true,
|
||||
},
|
||||
"globalName": undefined,
|
||||
"globals": Object {
|
||||
"globals": {
|
||||
"context": [Function],
|
||||
"id": [Function],
|
||||
"loadedCallback": [Function],
|
||||
@ -602,25 +602,25 @@ Object {
|
||||
"pluginPrefix": [Function],
|
||||
"readyCallback": [Function],
|
||||
},
|
||||
"head": Object {
|
||||
"link": Array [],
|
||||
"meta": Array [],
|
||||
"script": Array [],
|
||||
"style": Array [],
|
||||
"head": {
|
||||
"link": [],
|
||||
"meta": [],
|
||||
"script": [],
|
||||
"style": [],
|
||||
},
|
||||
"hooks": null,
|
||||
"ignore": Array [
|
||||
"ignore": [
|
||||
"**/*.test.*",
|
||||
"**/*.spec.*",
|
||||
],
|
||||
"ignoreOptions": undefined,
|
||||
"ignorePrefix": "-",
|
||||
"layoutTransition": Object {
|
||||
"layoutTransition": {
|
||||
"mode": "out-in",
|
||||
"name": "layout",
|
||||
},
|
||||
"layouts": Object {},
|
||||
"loading": Object {
|
||||
"layouts": {},
|
||||
"loading": {
|
||||
"color": "black",
|
||||
"continuous": false,
|
||||
"css": true,
|
||||
@ -631,7 +631,7 @@ Object {
|
||||
"throttle": 200,
|
||||
},
|
||||
"loadingIndicator": "default",
|
||||
"messages": Object {
|
||||
"messages": {
|
||||
"back_to_home": "Back to the home page",
|
||||
"client_error": "Error",
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
@ -643,29 +643,29 @@ Object {
|
||||
},
|
||||
"mode": undefined,
|
||||
"modern": undefined,
|
||||
"modes": Object {
|
||||
"spa": Object {
|
||||
"build": Object {
|
||||
"modes": {
|
||||
"spa": {
|
||||
"build": {
|
||||
"ssr": false,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": false,
|
||||
},
|
||||
},
|
||||
"universal": Object {
|
||||
"build": Object {
|
||||
"universal": {
|
||||
"build": {
|
||||
"ssr": true,
|
||||
},
|
||||
"render": Object {
|
||||
"render": {
|
||||
"ssr": true,
|
||||
},
|
||||
},
|
||||
},
|
||||
"modules": Array [],
|
||||
"modulesDir": Array [
|
||||
"modules": [],
|
||||
"modulesDir": [
|
||||
"node_modules",
|
||||
],
|
||||
"pageTransition": Object {
|
||||
"pageTransition": {
|
||||
"appear": false,
|
||||
"appearActiveClass": "appear-active",
|
||||
"appearClass": "appear",
|
||||
@ -673,38 +673,38 @@ Object {
|
||||
"mode": "out-in",
|
||||
"name": "page",
|
||||
},
|
||||
"plugins": Array [],
|
||||
"privateRuntimeConfig": Object {},
|
||||
"publicRuntimeConfig": Object {},
|
||||
"render": Object {
|
||||
"bundleRenderer": Object {
|
||||
"plugins": [],
|
||||
"privateRuntimeConfig": {},
|
||||
"publicRuntimeConfig": {},
|
||||
"render": {
|
||||
"bundleRenderer": {
|
||||
"runInNewContext": undefined,
|
||||
"shouldPrefetch": [Function],
|
||||
"shouldPreload": [Function],
|
||||
},
|
||||
"compressor": Object {
|
||||
"compressor": {
|
||||
"threshold": 0,
|
||||
},
|
||||
"crossorigin": undefined,
|
||||
"csp": false,
|
||||
"dist": Object {
|
||||
"dist": {
|
||||
"index": false,
|
||||
"maxAge": "1y",
|
||||
},
|
||||
"etag": Object {
|
||||
"etag": {
|
||||
"weak": false,
|
||||
},
|
||||
"fallback": Object {
|
||||
"dist": Object {},
|
||||
"static": Object {
|
||||
"handlers": Object {
|
||||
"fallback": {
|
||||
"dist": {},
|
||||
"static": {
|
||||
"handlers": {
|
||||
".htm": false,
|
||||
".html": false,
|
||||
},
|
||||
"skipUnknown": true,
|
||||
},
|
||||
},
|
||||
"http2": Object {
|
||||
"http2": {
|
||||
"push": false,
|
||||
"pushAssets": null,
|
||||
"shouldPush": null,
|
||||
@ -712,39 +712,39 @@ Object {
|
||||
"resourceHints": true,
|
||||
"ssr": undefined,
|
||||
"ssrLog": undefined,
|
||||
"static": Object {
|
||||
"static": {
|
||||
"prefix": true,
|
||||
},
|
||||
},
|
||||
"router": Object {
|
||||
"router": {
|
||||
"base": "/",
|
||||
"extendRoutes": null,
|
||||
"fallback": false,
|
||||
"linkActiveClass": "nuxt-link-active",
|
||||
"linkExactActiveClass": "nuxt-link-exact-active",
|
||||
"linkPrefetchedClass": false,
|
||||
"middleware": Array [],
|
||||
"middleware": [],
|
||||
"mode": "history",
|
||||
"parseQuery": false,
|
||||
"prefetchLinks": true,
|
||||
"prefetchPayloads": true,
|
||||
"routeNameSplitter": "-",
|
||||
"routes": Array [],
|
||||
"routes": [],
|
||||
"scrollBehavior": null,
|
||||
"stringifyQuery": false,
|
||||
"trailingSlash": undefined,
|
||||
},
|
||||
"server": Object {
|
||||
"server": {
|
||||
"host": "localhost",
|
||||
"https": false,
|
||||
"port": "3001",
|
||||
"socket": "/var/run/nuxt.sock",
|
||||
"timing": false,
|
||||
},
|
||||
"serverMiddleware": Array [],
|
||||
"serverMiddleware": [],
|
||||
"srcDir": undefined,
|
||||
"ssr": true,
|
||||
"styleExtensions": Array [
|
||||
"styleExtensions": [
|
||||
"css",
|
||||
"pcss",
|
||||
"postcss",
|
||||
@ -756,20 +756,20 @@ Object {
|
||||
],
|
||||
"target": "server",
|
||||
"test": true,
|
||||
"vue": Object {
|
||||
"config": Object {
|
||||
"vue": {
|
||||
"config": {
|
||||
"performance": undefined,
|
||||
"silent": undefined,
|
||||
},
|
||||
},
|
||||
"vueMeta": null,
|
||||
"watch": Array [],
|
||||
"watchers": Object {
|
||||
"chokidar": Object {
|
||||
"watch": [],
|
||||
"watchers": {
|
||||
"chokidar": {
|
||||
"ignoreInitial": true,
|
||||
},
|
||||
"rewatchOnRawEvents": undefined,
|
||||
"webpack": Object {
|
||||
"webpack": {
|
||||
"aggregateTimeout": 1000,
|
||||
},
|
||||
},
|
||||
|
@ -23,6 +23,8 @@ describe('config', () => {
|
||||
NUXT_HOST: 'localhost',
|
||||
UNIX_SOCKET: '/var/run/nuxt.sock'
|
||||
}
|
||||
expect(getDefaultNuxtConfig({ env })).toMatchSnapshot()
|
||||
const config = getDefaultNuxtConfig({ env })
|
||||
config.buildModules = config.buildModules.filter(p => p.name !== 'patchMD4')
|
||||
expect(config).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
|
@ -26,14 +26,16 @@ describe('config: options', () => {
|
||||
jest.spyOn(path, 'resolve').mockImplementation((...args) => args.join('/').replace(/\\+/, '/'))
|
||||
jest.spyOn(path, 'join').mockImplementation((...args) => args.join('/').replace(/\\+/, '/'))
|
||||
|
||||
expect(getNuxtConfig({
|
||||
const config = getNuxtConfig({
|
||||
createRequire: jest.fn(),
|
||||
generate: {
|
||||
staticAssets: {
|
||||
version: 'x'
|
||||
}
|
||||
}
|
||||
})).toMatchSnapshot()
|
||||
})
|
||||
config.buildModules = config.buildModules.filter(p => p.name !== 'patchMD4')
|
||||
expect(config).toMatchSnapshot()
|
||||
|
||||
process.cwd.mockRestore()
|
||||
path.resolve.mockRestore()
|
||||
@ -294,7 +296,7 @@ describe('config: options', () => {
|
||||
const config = getNuxtConfig({ devModules: ['foo'], buildModules: ['bar'] })
|
||||
expect(consola.warn).toHaveBeenCalledWith('`devModules` has been renamed to `buildModules` and will be removed in Nuxt 3.')
|
||||
expect(config.devModules).toBe(undefined)
|
||||
expect(config.buildModules).toEqual(['bar', 'foo'])
|
||||
expect(config.buildModules.filter(p => p.name !== 'patchMD4')).toEqual(['bar', 'foo'])
|
||||
})
|
||||
|
||||
test('should deprecate build.extractCSS.allChunks', () => {
|
||||
|
@ -1,50 +1,50 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`util: route util: route create createRoutes should allow snake case routes in posix system 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"chunkName": "pages/parent/index",
|
||||
"component": "/some/nuxt/app/pages/parent/index.vue",
|
||||
"name": "parent",
|
||||
"path": "/parent",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/snake_case_route",
|
||||
"component": "/some/nuxt/app/pages/snake_case_route.vue",
|
||||
"name": "snake_case_route",
|
||||
"path": "/snake_case_route",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/index",
|
||||
"component": "/some/nuxt/app/pages/parent/child/index.vue",
|
||||
"name": "parent-child",
|
||||
"path": "/parent/child",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/test",
|
||||
"component": "/some/nuxt/app/pages/parent/child/test.vue",
|
||||
"name": "parent-child-test",
|
||||
"path": "/parent/child/test",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/another_route/_id",
|
||||
"component": "/some/nuxt/app/pages/another_route/_id.vue",
|
||||
"name": "another_route-id",
|
||||
"path": "/another_route/:id?",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/subpage/_param",
|
||||
"component": "/some/nuxt/app/pages/subpage/_param.vue",
|
||||
"name": "subpage-param",
|
||||
"path": "/subpage/:param?",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/index",
|
||||
"component": "/some/nuxt/app/pages/index.vue",
|
||||
"name": "index",
|
||||
"path": "/",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/_param",
|
||||
"component": "/some/nuxt/app/pages/_param.vue",
|
||||
"name": "param",
|
||||
@ -54,52 +54,52 @@ Array [
|
||||
`;
|
||||
|
||||
exports[`util: route util: route create createRoutes should allow snake case routes in windows system 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"chunkName": "pages/parent/index",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\parent\\\\\\\\index.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\parent\\\\index.vue",
|
||||
"name": "parent",
|
||||
"path": "/parent",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/snake_case_route",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\snake_case_route.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\snake_case_route.vue",
|
||||
"name": "snake_case_route",
|
||||
"path": "/snake_case_route",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/index",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\parent\\\\\\\\child\\\\\\\\index.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\parent\\\\child\\\\index.vue",
|
||||
"name": "parent-child",
|
||||
"path": "/parent/child",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/test",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\parent\\\\\\\\child\\\\\\\\test.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\parent\\\\child\\\\test.vue",
|
||||
"name": "parent-child-test",
|
||||
"path": "/parent/child/test",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/another_route/_id",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\another_route\\\\\\\\_id.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\another_route\\\\_id.vue",
|
||||
"name": "another_route-id",
|
||||
"path": "/another_route/:id?",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/subpage/_param",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\subpage\\\\\\\\_param.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\subpage\\\\_param.vue",
|
||||
"name": "subpage-param",
|
||||
"path": "/subpage/:param?",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/index",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\index.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\index.vue",
|
||||
"name": "index",
|
||||
"path": "/",
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/_param",
|
||||
"component": "\\\\\\\\\\\\\\\\some\\\\\\\\nuxt\\\\\\\\app\\\\\\\\pages\\\\\\\\_param.vue",
|
||||
"component": "\\\\\\\\some\\\\nuxt\\\\app\\\\pages\\\\_param.vue",
|
||||
"name": "param",
|
||||
"path": "/:param",
|
||||
},
|
||||
@ -107,76 +107,76 @@ Array [
|
||||
`;
|
||||
|
||||
exports[`util: route util: route create createRoutes should enforce trailing slashes when configured to 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"chunkName": "pages/parent/index",
|
||||
"component": "/some/nuxt/app/pages/parent/index.vue",
|
||||
"name": "parent",
|
||||
"path": "/parent/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/snake_case_route",
|
||||
"component": "/some/nuxt/app/pages/snake_case_route.vue",
|
||||
"name": "snake_case_route",
|
||||
"path": "/snake_case_route/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/index",
|
||||
"component": "/some/nuxt/app/pages/parent/child/index.vue",
|
||||
"name": "parent-child",
|
||||
"path": "/parent/child/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/test",
|
||||
"component": "/some/nuxt/app/pages/parent/child/test.vue",
|
||||
"name": "parent-child-test",
|
||||
"path": "/parent/child/test/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/another_route/_id",
|
||||
"component": "/some/nuxt/app/pages/another_route/_id.vue",
|
||||
"name": "another_route-id",
|
||||
"path": "/another_route/:id?/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/subpage/_param",
|
||||
"component": "/some/nuxt/app/pages/subpage/_param.vue",
|
||||
"name": "subpage-param",
|
||||
"path": "/subpage/:param?/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/index",
|
||||
"component": "/some/nuxt/app/pages/index.vue",
|
||||
"name": "index",
|
||||
"path": "/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/_param",
|
||||
"component": "/some/nuxt/app/pages/_param.vue",
|
||||
"name": "param",
|
||||
"path": "/:param/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
@ -184,76 +184,76 @@ Array [
|
||||
`;
|
||||
|
||||
exports[`util: route util: route create createRoutes should remove trailing slashes when configured to 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"chunkName": "pages/parent/index",
|
||||
"component": "/some/nuxt/app/pages/parent/index.vue",
|
||||
"name": "parent",
|
||||
"path": "/parent",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/snake_case_route",
|
||||
"component": "/some/nuxt/app/pages/snake_case_route.vue",
|
||||
"name": "snake_case_route",
|
||||
"path": "/snake_case_route",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/index",
|
||||
"component": "/some/nuxt/app/pages/parent/child/index.vue",
|
||||
"name": "parent-child",
|
||||
"path": "/parent/child",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/parent/child/test",
|
||||
"component": "/some/nuxt/app/pages/parent/child/test.vue",
|
||||
"name": "parent-child-test",
|
||||
"path": "/parent/child/test",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/another_route/_id",
|
||||
"component": "/some/nuxt/app/pages/another_route/_id.vue",
|
||||
"name": "another_route-id",
|
||||
"path": "/another_route/:id?",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/subpage/_param",
|
||||
"component": "/some/nuxt/app/pages/subpage/_param.vue",
|
||||
"name": "subpage-param",
|
||||
"path": "/subpage/:param?",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/index",
|
||||
"component": "/some/nuxt/app/pages/index.vue",
|
||||
"name": "index",
|
||||
"path": "/",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"chunkName": "pages/_param",
|
||||
"component": "/some/nuxt/app/pages/_param.vue",
|
||||
"name": "param",
|
||||
"path": "/:param",
|
||||
"pathToRegexpOptions": Object {
|
||||
"pathToRegexpOptions": {
|
||||
"strict": true,
|
||||
},
|
||||
},
|
||||
|
@ -1,30 +1,49 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"@nuxtjs"
|
||||
"github>nuxt/renovate-config-nuxt"
|
||||
],
|
||||
"baseBranches": [
|
||||
"dev"
|
||||
"main",
|
||||
"2.x"
|
||||
],
|
||||
"ignoreDeps": [
|
||||
"core-js",
|
||||
"css-loader",
|
||||
"sass-loader",
|
||||
"npm",
|
||||
"boxen",
|
||||
"html-webpack-plugin",
|
||||
"terser-webpack-plugin",
|
||||
"@types/terser-webpack-plugin",
|
||||
"@types/webpack-bundle-analyzer",
|
||||
"wrap-ansi",
|
||||
"jest",
|
||||
"babel-jest",
|
||||
"globby",
|
||||
"execa",
|
||||
"chalk",
|
||||
"vue",
|
||||
"vuex"
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true
|
||||
}
|
||||
"packageRules": [
|
||||
{
|
||||
"matchBaseBranches": [
|
||||
"main"
|
||||
],
|
||||
"ignoreDeps": [
|
||||
"nuxt",
|
||||
"nuxt3",
|
||||
"@nuxt/kit",
|
||||
"parse5"
|
||||
]
|
||||
},
|
||||
{
|
||||
"matchBaseBranches": [
|
||||
"2.x"
|
||||
],
|
||||
"ignoreDeps": [
|
||||
"@types/node",
|
||||
"postcss-import",
|
||||
"postcss-loader",
|
||||
"postcss-url",
|
||||
"css-loader",
|
||||
"sass-loader",
|
||||
"npm",
|
||||
"boxen",
|
||||
"html-webpack-plugin",
|
||||
"terser-webpack-plugin",
|
||||
"@types/terser-webpack-plugin",
|
||||
"@types/webpack-bundle-analyzer",
|
||||
"@types/webpack-hot-middleware",
|
||||
"wrap-ansi",
|
||||
"globby",
|
||||
"execa",
|
||||
"chalk",
|
||||
"vue",
|
||||
"vuex"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user