Nuxt/packages/builder/test/context/__snapshots__/template.test.js.snap
Pooya Parsa a759196865 feat(vue-app): build indicator (#5820)
* feat: inline HMR progress indicator

* support router base

* fix nuxt err

* fix space

* fix indentation

* return in case of ws message parsing error

* close ws on beforeDestroy

* ui: Update loading indicator UI

* builder: Add build.indicator option

* ui: Use only logo and %

* hotfix: Alphabetical order

* hotfix: Add fixed with and add back v-if

* minor style change

* rename component to build-indicator

* feat: animated progress

* assign name to component

* update test

* naming consistency

* render into app to prevent dom wrapping

* extra new line

* better App.js formatting

* update snapshot

* clear interval
2019-05-29 16:44:15 +02:00

111 lines
2.4 KiB
Plaintext

// 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",
},
},
}
`;