2019-01-14 17:40:10 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`config: options should return default nuxt config 1`] = `
Object {
"ErrorPage": null,
"__normalized__": true,
2019-01-14 19:47:00 +00:00
"_nuxtConfigFile": "/var/nuxt/test/nuxt.config.js",
2019-04-11 10:04:21 +00:00
"_nuxtConfigFiles": Array [
"/var/nuxt/test/nuxt.config.js",
],
2019-05-06 13:59:37 +00:00
"alias": Object {
"@": "/var/nuxt/test",
"@@": "/var/nuxt/test",
"assets": "/var/nuxt/test/assets",
"static": "/var/nuxt/test/static",
"~": "/var/nuxt/test",
"~~": "/var/nuxt/test",
},
2019-01-14 19:47:00 +00:00
"appTemplatePath": "/var/nuxt/test/.nuxt/views/app.template.html",
2019-01-14 17:40:10 +00:00
"build": Object {
"_publicPath": "/_nuxt/",
2019-06-04 19:48:01 +00:00
"additionalExtensions": Array [],
2019-11-24 15:39:45 +00:00
"aggressiveCodeRemoval": false,
2019-01-14 17:40:10 +00:00
"analyze": false,
"babel": Object {
"babelrc": false,
"cacheDirectory": false,
2019-03-24 17:44:22 +00:00
"configFile": false,
2019-01-14 17:40:10 +00:00
},
"cache": false,
"cssSourceMap": false,
"devMiddleware": Object {},
"extractCSS": false,
"filenames": Object {
"app": [Function],
"chunk": [Function],
"css": [Function],
"font": [Function],
"img": [Function],
"video": [Function],
},
2019-09-29 09:06:44 +00:00
"followSymlinks": false,
2019-01-14 17:40:10 +00:00
"friendlyErrors": true,
"hardSource": false,
"hotMiddleware": Object {},
"html": Object {
"minify": Object {
"collapseBooleanAttributes": true,
"decodeEntities": true,
"minifyCSS": true,
"minifyJS": true,
"processConditionalComments": true,
"removeEmptyAttributes": true,
"removeRedundantAttributes": true,
"trimCustomFragments": true,
"useShortDoctype": true,
},
},
2020-03-13 20:23:33 +00:00
"indicator": false,
2019-01-14 17:40:10 +00:00
"loaders": Object {
"css": Object {
"sourceMap": false,
},
"cssModules": Object {
2019-06-15 10:13:05 +00:00
"modules": Object {
"localIdentName": "[local]_[hash:base64:5]",
},
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
"file": Object {},
"fontUrl": Object {
"limit": 1000,
},
"imgUrl": Object {
"limit": 1000,
},
"less": Object {
"sourceMap": false,
},
"pugPlain": Object {},
"sass": Object {
2019-09-26 12:10:54 +00:00
"sassOptions": Object {
"indentedSyntax": true,
},
2019-01-14 17:40:10 +00:00
"sourceMap": false,
},
"scss": Object {
"sourceMap": false,
},
"stylus": Object {
"sourceMap": false,
},
"vue": Object {
"productionMode": true,
"transformAssetUrls": Object {
"embed": "src",
"object": "src",
"source": "src",
"video": "src",
},
},
"vueStyle": Object {
"sourceMap": false,
},
},
2020-03-13 20:23:33 +00:00
"loadingScreen": false,
2019-01-14 17:40:10 +00:00
"optimization": Object {
"minimize": true,
"minimizer": undefined,
"runtimeChunk": "single",
"splitChunks": Object {
"automaticNameDelimiter": ".",
"cacheGroups": Object {},
"chunks": "all",
"name": undefined,
},
},
"optimizeCSS": false,
"parallel": false,
"plugins": Array [],
"postcss": Object {
"preset": Object {
"stage": 2,
},
},
"profile": false,
"publicPath": "/_nuxt/",
"quiet": true,
2020-01-19 08:37:06 +00:00
"serverURLPolyfill": "url",
2019-01-14 17:40:10 +00:00
"splitChunks": Object {
"commons": true,
"layouts": false,
"pages": true,
},
"ssr": true,
"standalone": false,
"stats": false,
"styleResources": Object {},
"template": undefined,
"templates": Array [],
"terser": Object {},
"transpile": Array [],
2019-06-04 19:48:01 +00:00
"warningIgnoreFilters": Array [],
2019-01-14 17:40:10 +00:00
"watch": Array [],
},
2019-01-14 19:47:00 +00:00
"buildDir": "/var/nuxt/test/.nuxt",
2019-08-09 10:32:53 +00:00
"buildModules": Array [],
2019-01-14 17:40:10 +00:00
"cli": Object {
"badgeMessages": Array [],
2019-09-30 08:46:58 +00:00
"bannerColor": "green",
2019-01-14 17:40:10 +00:00
},
"css": Array [],
"debug": false,
"dev": false,
"dir": Object {
2019-07-24 11:35:50 +00:00
"app": "app",
2019-01-14 17:40:10 +00:00
"assets": "assets",
"layouts": "layouts",
"middleware": "middleware",
"pages": "pages",
"static": "static",
"store": "store",
},
"editor": undefined,
"env": Object {},
2019-09-04 12:19:50 +00:00
"extendPlugins": null,
2019-01-14 17:40:10 +00:00
"extensions": Array [
"js",
"mjs",
],
2019-09-05 15:15:27 +00:00
"features": Object {
"asyncData": true,
"clientOnline": true,
"clientPrefetch": true,
"clientUseUrl": false,
"componentAliases": true,
"componentClientOnly": true,
"deprecations": true,
"fetch": true,
"layouts": true,
"meta": true,
"middleware": true,
"store": true,
"transitions": true,
"validate": true,
},
2019-02-14 15:56:58 +00:00
"fetch": Object {
"client": true,
"server": true,
},
2019-01-14 17:40:10 +00:00
"generate": Object {
"concurrency": 500,
2019-01-14 19:47:00 +00:00
"dir": "/var/nuxt/test/dist",
2019-01-19 12:00:51 +00:00
"exclude": Array [],
2019-01-14 17:40:10 +00:00
"fallback": "200.html",
"interval": 0,
"routes": Array [],
"subFolders": true,
},
"globalName": "nuxt",
"globals": Object {
"context": [Function],
"id": [Function],
"loadedCallback": [Function],
"nuxt": [Function],
"pluginPrefix": [Function],
"readyCallback": [Function],
},
"head": Object {
"link": Array [],
"meta": Array [],
"script": Array [],
"style": Array [],
},
"hooks": null,
"ignore": Array [
"**/*.test.*",
"**/*.spec.*",
"**/-*.*",
],
2019-11-24 12:28:37 +00:00
"ignoreOptions": undefined,
2019-01-14 17:40:10 +00:00
"ignorePrefix": "-",
"layoutTransition": Object {
"mode": "out-in",
"name": "layout",
},
"layouts": Object {},
"loading": Object {
"color": "black",
"continuous": false,
"css": true,
"duration": 5000,
"failedColor": "red",
"height": "2px",
"rtl": false,
"throttle": 200,
},
"loadingIndicator": Object {
"background": "white",
"color": "black",
"color2": "#F5F5F5",
"dev": false,
"loading": "Loading...",
"name": "default",
},
"messages": Object {
"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.",
"error_404": "This page could not be found",
"loading": "Loading...",
"nuxtjs": "Nuxt.js",
"server_error": "Server error",
"server_error_details": "An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.",
},
"mode": "universal",
"modern": undefined,
"modes": Object {
"spa": Object {
"build": Object {
"ssr": false,
},
"render": Object {
"ssr": false,
},
},
"universal": Object {
"build": Object {
"ssr": true,
},
"render": Object {
"ssr": true,
},
},
},
"modules": Array [],
2019-01-14 20:31:39 +00:00
"modulesDir": Array [
"/var/nuxt/node_modules",
"/var/nuxt/test/node_modules",
],
2019-04-20 10:01:59 +00:00
"pageTransition": Object {
"appear": false,
"appearActiveClass": "appear-active",
"appearClass": "appear",
"appearToClass": "appear-to",
"mode": "out-in",
"name": "page",
},
2019-01-14 17:40:10 +00:00
"plugins": Array [],
"render": Object {
"bundleRenderer": Object {
"runInNewContext": false,
"shouldPrefetch": [Function],
"shouldPreload": [Function],
},
"compressor": Object {
"threshold": 0,
},
2020-04-07 09:38:49 +00:00
"crossorigin": undefined,
2019-01-14 17:40:10 +00:00
"csp": false,
"dist": Object {
"index": false,
"maxAge": "1y",
},
"etag": Object {
"weak": false,
},
"fallback": Object {
"dist": Object {},
"static": Object {
"handlers": Object {
".htm": false,
".html": false,
},
"skipUnknown": true,
},
},
"http2": Object {
"push": false,
"pushAssets": null,
"shouldPush": null,
},
"resourceHints": true,
"ssr": true,
2019-05-23 09:49:16 +00:00
"ssrLog": false,
2019-01-14 17:40:10 +00:00
"static": Object {
"prefix": true,
},
},
2019-01-14 19:47:00 +00:00
"rootDir": "/var/nuxt/test",
2019-01-14 17:40:10 +00:00
"router": Object {
"base": "/",
"extendRoutes": null,
"fallback": false,
"linkActiveClass": "nuxt-link-active",
"linkExactActiveClass": "nuxt-link-exact-active",
"linkPrefetchedClass": false,
"middleware": Array [],
"mode": "history",
"parseQuery": false,
"prefetchLinks": true,
"routeNameSplitter": "-",
"routes": Array [],
"scrollBehavior": null,
"stringifyQuery": false,
2019-09-01 14:37:25 +00:00
"trailingSlash": undefined,
2019-01-14 17:40:10 +00:00
},
"server": Object {
"host": "localhost",
"https": false,
"port": 3000,
"socket": undefined,
2019-01-19 18:14:54 +00:00
"timing": false,
2019-01-14 17:40:10 +00:00
},
"serverMiddleware": Array [],
2019-01-14 19:47:00 +00:00
"srcDir": "/var/nuxt/test",
2019-01-14 17:40:10 +00:00
"styleExtensions": Array [
"css",
"pcss",
"postcss",
"styl",
"stylus",
"scss",
"sass",
"less",
],
"test": true,
"vue": Object {
"config": Object {
"performance": false,
"silent": true,
},
},
2019-09-18 13:51:44 +00:00
"vueMeta": null,
2019-01-14 17:40:10 +00:00
"watch": Array [
2019-01-14 19:47:00 +00:00
"/var/nuxt/test/nuxt.config.js",
2019-01-14 17:40:10 +00:00
],
"watchers": Object {
"chokidar": Object {
"ignoreInitial": true,
},
2019-05-27 09:06:53 +00:00
"rewatchOnRawEvents": undefined,
2019-08-21 19:04:04 +00:00
"webpack": Object {
"aggregateTimeout": 1000,
},
2019-01-14 17:40:10 +00:00
},
}
`;