2019-02-04 10:34:04 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`builder: buildContext should construct context 1`] = `
|
|
|
|
TemplateContext {
|
|
|
|
"templateFiles": Array [
|
|
|
|
"template.js",
|
|
|
|
],
|
|
|
|
"templateVars": Object {
|
|
|
|
"appPath": "./App.js",
|
2019-05-29 14:44:15 +00:00
|
|
|
"buildIndicator": undefined,
|
2019-02-04 10:34:04 +00:00
|
|
|
"components": Object {
|
|
|
|
"ErrorPage": "relativeBuild(test_error_page)",
|
|
|
|
},
|
|
|
|
"css": Array [
|
|
|
|
"test.css",
|
|
|
|
],
|
|
|
|
"debug": "test_debug",
|
|
|
|
"dir": Array [
|
|
|
|
"test_dir",
|
|
|
|
],
|
|
|
|
"env": "test_env",
|
|
|
|
"extensions": "test|ext",
|
2019-02-14 15:56:58 +00:00
|
|
|
"fetch": undefined,
|
2019-02-04 10:34:04 +00:00
|
|
|
"globalName": "test_global",
|
|
|
|
"globals": Array [
|
|
|
|
"globals",
|
|
|
|
],
|
|
|
|
"head": "test_head",
|
|
|
|
"isDev": "test_dev",
|
|
|
|
"isTest": "test_test",
|
|
|
|
"layoutTransition": Object {
|
|
|
|
"name": "test_layout_trans",
|
|
|
|
},
|
|
|
|
"layouts": Object {
|
|
|
|
"test-layout": "test.template",
|
|
|
|
},
|
|
|
|
"loading": "relativeBuild(test_src_dir, test-loading)",
|
|
|
|
"messages": Object {
|
|
|
|
"test": "test message",
|
|
|
|
},
|
|
|
|
"mode": "test mode",
|
2019-05-23 08:49:40 +00:00
|
|
|
"nuxtOptions": Object {
|
2019-02-04 10:34:04 +00:00
|
|
|
"ErrorPage": "test_error_page",
|
|
|
|
"build": Object {
|
|
|
|
"splitChunks": Object {
|
|
|
|
"testSC": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"css": Array [
|
|
|
|
"test.css",
|
|
|
|
],
|
|
|
|
"debug": "test_debug",
|
|
|
|
"dev": "test_dev",
|
|
|
|
"dir": Array [
|
|
|
|
"test_dir",
|
|
|
|
],
|
|
|
|
"env": "test_env",
|
|
|
|
"extensions": Array [
|
|
|
|
"test",
|
|
|
|
"ext",
|
|
|
|
],
|
|
|
|
"globalName": "test_global",
|
|
|
|
"head": "test_head",
|
|
|
|
"layoutTransition": Object {
|
|
|
|
"name": "test_layout_trans",
|
|
|
|
},
|
|
|
|
"layouts": Object {
|
|
|
|
"test-layout": "test.template",
|
|
|
|
},
|
|
|
|
"loading": "test-loading",
|
|
|
|
"messages": Object {
|
|
|
|
"test": "test message",
|
|
|
|
},
|
|
|
|
"mode": "test mode",
|
2019-04-20 10:01:59 +00:00
|
|
|
"pageTransition": Object {
|
|
|
|
"name": "test_trans",
|
|
|
|
},
|
2019-05-06 10:46:04 +00:00
|
|
|
"rootDir": "test_root_dir",
|
2019-02-04 10:34:04 +00:00
|
|
|
"router": Object {
|
|
|
|
"route": "test",
|
|
|
|
},
|
|
|
|
"srcDir": "test_src_dir",
|
|
|
|
"store": "test_store",
|
|
|
|
"test": "test_test",
|
|
|
|
"vue": Object {
|
|
|
|
"config": "test_config",
|
|
|
|
},
|
|
|
|
},
|
2019-04-20 10:01:59 +00:00
|
|
|
"pageTransition": Object {
|
|
|
|
"name": "test_trans",
|
|
|
|
},
|
2019-02-04 10:34:04 +00:00
|
|
|
"plugins": Array [
|
|
|
|
"plugins",
|
|
|
|
],
|
2019-05-06 10:46:04 +00:00
|
|
|
"rootDir": "test_root_dir",
|
2019-02-04 10:34:04 +00:00
|
|
|
"router": Object {
|
|
|
|
"route": "test",
|
|
|
|
},
|
|
|
|
"splitChunks": Object {
|
|
|
|
"testSC": true,
|
|
|
|
},
|
2019-05-06 10:46:04 +00:00
|
|
|
"srcDir": "test_src_dir",
|
2019-02-04 10:34:04 +00:00
|
|
|
"store": "test_store",
|
|
|
|
"uniqBy": [Function],
|
|
|
|
"vue": Object {
|
|
|
|
"config": "test_config",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
`;
|