Nuxt/packages/builder/test/context/__snapshots__/template.test.js.snap

111 lines
2.4 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`builder: buildContext should construct context 1`] = `
TemplateContext {
"templateFiles": Array [
"template.js",
],
"templateVars": Object {
"appPath": "./App.js",
"buildIndicator": undefined,
"components": Object {
"ErrorPage": "relativeBuild(test_error_page)",
},
"css": Array [
"test.css",
],
"debug": "test_debug",
"dir": Array [
"test_dir",
],
"env": "test_env",
"extensions": "test|ext",
"fetch": undefined,
"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",
"nuxtOptions": Object {
"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",
"pageTransition": Object {
"name": "test_trans",
},
"rootDir": "test_root_dir",
"router": Object {
"route": "test",
},
"srcDir": "test_src_dir",
"store": "test_store",
"test": "test_test",
"vue": Object {
"config": "test_config",
},
},
"pageTransition": Object {
"name": "test_trans",
},
"plugins": Array [
"plugins",
],
"rootDir": "test_root_dir",
"router": Object {
"route": "test",
},
"splitChunks": Object {
"testSC": true,
},
"srcDir": "test_src_dir",
"store": "test_store",
"uniqBy": [Function],
"vue": Object {
"config": "test_config",
},
},
}
`;