wip #1055
Annotations
10 errors
Run yarn test:
tests/config.test.ts#L30
Error: Snapshot `parse vivliostyle config > valid.1.config.js 1` mismatched
- Expected
+ Received
@@ -1,9 +1,16 @@
Object {
"author": "author",
"bleed": undefined,
"browserType": "firefox",
+ "cliFlags": Object {
+ "config": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "configPath": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "input": undefined,
+ "logLevel": "info",
+ "targets": Array [],
+ },
"copyAsset": Object {
"excludes": Array [
"*a*",
],
"fileExtensions": Array [
@@ -155,10 +162,11 @@
},
},
"themesDir": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes",
"timeout": 1,
"title": "title",
+ "tmpPrefix": ".vs-1732561413892.",
"vfmOptions": Object {
"disableFormatHtml": true,
"hardLineBreaks": true,
},
"viewer": undefined,
❯ tests/config.test.ts:30:24
|
Run yarn test:
tests/config.test.ts#L87
Error: Snapshot `override option by CLI command > valid.1.config.js 1` mismatched
- Expected
+ Received
@@ -1,9 +1,49 @@
Object {
"author": "myAuthor",
"bleed": undefined,
"browserType": "firefox",
+ "cliFlags": Object {
+ "author": "myAuthor",
+ "config": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "configPath": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "executableBrowser": "__EXECUTABLE_CHROMIUM_PATH__",
+ "format": Array [
+ "webpub",
+ ],
+ "http": true,
+ "ignoreHttpsErrors": true,
+ "input": undefined,
+ "language": "myLanguage",
+ "logLevel": "info",
+ "output": Array [
+ "yuno.pdf",
+ "yuno",
+ ],
+ "proxyBypass": ".example.com",
+ "proxyPass": "proxy-auth-password",
+ "proxyServer": "http://localhost:3128",
+ "proxyUser": "proxy-auth-user",
+ "size": "JIS-B5",
+ "style": "https://vivlostyle.org",
+ "targets": Array [
+ Object {
+ "format": "pdf",
+ "path": "yuno.pdf",
+ },
+ Object {
+ "format": "webpub",
+ "path": "yuno",
+ },
+ ],
+ "theme": "https://myTheme.example.com",
+ "timeout": 42000,
+ "title": "myTitle",
+ "userStyle": "./user/style/dummy.css",
+ "viewer": "https://vivliostyle.org/viewer/",
+ "viewerParam": "allowScripts=false&pixelRatio=16",
+ },
"copyAsset": Object {
"excludes": Array [
"*a*",
],
"fileExtensions": Array [
@@ -149,10 +189,11 @@
},
},
"themesDir": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes",
"timeout": 42000,
"title": "myTitle",
+ "tmpPrefix": ".vs-1732561413966.",
"vfmOptions": Object {
"disableFormatHtml": true,
"hardLineBreaks": true,
},
"viewer": "https://vivliostyle.org/viewer/",
❯ tests/config.test.ts:87:18
|
Run yarn test:
tests/config.test.ts#L98
Error: Snapshot `override option by environment variable > valid.1.config.js 1` mismatched
- Expected
+ Received
@@ -1,9 +1,16 @@
Object {
"author": "author",
"bleed": undefined,
"browserType": "firefox",
+ "cliFlags": Object {
+ "config": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "configPath": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "input": undefined,
+ "logLevel": "info",
+ "targets": Array [],
+ },
"copyAsset": Object {
"excludes": Array [
"*a*",
],
"fileExtensions": Array [
@@ -160,10 +167,11 @@
},
},
"themesDir": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes",
"timeout": 1,
"title": "title",
+ "tmpPrefix": ".vs-1732561414054.",
"vfmOptions": Object {
"disableFormatHtml": true,
"hardLineBreaks": true,
},
"viewer": undefined,
❯ tests/config.test.ts:98:24
|
Run yarn test:
tests/config.test.ts#L122
AssertionError: expected { …(41) } to deeply equal { …(41) }
- Expected
+ Received
Object {
"author": "author",
"bleed": undefined,
"browserType": "firefox",
"cliFlags": Object {
+ "config": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
"configPath": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
"input": undefined,
"logLevel": "info",
"targets": Array [],
},
"copyAsset": Object {
"excludes": Array [
"*a*",
],
"fileExtensions": Array [
"jpeg",
"svg",
"gif",
"webp",
"apng",
"ttf",
"otf",
"woff",
"woff2",
"zip",
],
"includes": Array [
"xx/yy",
"**/zz",
],
},
"cover": Object {
"htmlPath": "__WORKSPACE__/tests/fixtures/config/workspaceDir/mycover.html",
"name": "Cover image alt",
"src": "__WORKSPACE__/tests/fixtures/config/cover.png",
},
"cropMarks": false,
"cropOffset": undefined,
"css": undefined,
"customStyle": undefined,
"customUserStyle": undefined,
"documentProcessorFactory": [Function VFM],
"entries": Array [
Object {
"coverImageAlt": "Cover image alt",
"coverImageSrc": "__WORKSPACE__/tests/fixtures/config/cover.png",
"rel": "cover",
"target": "__WORKSPACE__/tests/fixtures/config/workspaceDir/mycover.html",
"themes": Array [],
"title": "title",
},
Object {
"rel": "contents",
"sectionDepth": 6,
"target": "__WORKSPACE__/tests/fixtures/config/workspaceDir/toc.html",
"themes": Array [
Object {
"importPath": undefined,
"location": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes/packages/debug-theme",
"name": "debug-theme",
"specifier": "__WORKSPACE__/tests/fixtures/themes/debug-theme",
"type": "package",
},
],
"tocTitle": "TOC",
"transform": Object {
"transformDocumentList": undefined,
"transformSectionList": undefined,
},
},
Object {
"source": "__WORKSPACE__/tests/fixtures/config/manuscript.md",
"target": "__WORKSPACE__/tests/fixtures/config/workspaceDir/manuscript.html",
"themes": Array [
Object {
"importPath": undefined,
"location": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes/packages/debug-theme",
"name": "debug-theme",
"specifier": "__WORKSPACE__/tests/fixtures/themes/debug-theme",
"type": "package",
},
],
"title": "title",
"type": "text/markdown",
},
Object {
"source": "__WORKSPACE__/tests/fixtures/config/manuscript.md",
"target": "__WORKSPACE__/tests/fixtures/config/workspaceDir/manuscript.html",
"themes": Array [
Object {
"location": "__WORKSPACE__/tests/fixtures/config/workspaceDir/theme.css",
"name": "theme.css",
"source": "__WORKSPACE__/tests/fixtures/config/theme.css",
"type": "file",
},
],
"title": "title",
"type": "text/markdown",
},
],
"entryContextDir": "__WORKSPACE__/tests/fixtures/config",
"executableBrowser": "__EXECUTABLE_CHROMIUM_PATH__",
"exportAliases": Array [],
"httpServer": false,
"ignoreHttpsErrors": false,
"image": "__IMAGE__",
"input": Object {
"entry": "__WORKSPACE__/tests/fixtures/config/workspaceDir/publication.json",
"format": "pub-manifest",
},
"language": "language",
"logLevel": "info",
"manifestPath": "__WORKSPACE__/tests/fixtures/config/workspaceDir/publication.json",
"needToGenerateManifest": true,
"outputs": Array [
Object {
"format": "pdf",
"path": "__WORKSPACE__/tests/fixtures/config/output1.pdf",
"preflight": "press-ready",
"preflightOption": Array [],
"rende
|
Run yarn test:
tests/config.test.ts#L150
Error: Snapshot `yields a config with single markdown 1` mismatched
- Expected
+ Received
@@ -1,9 +1,15 @@
Object {
"author": undefined,
"bleed": undefined,
"browserType": "chromium",
+ "cliFlags": Object {
+ "configPath": undefined,
+ "input": "__WORKSPACE__/tests/fixtures/config/sample.md",
+ "logLevel": "info",
+ "targets": Array [],
+ },
"copyAsset": Object {
"excludes": Array [],
"fileExtensions": Array [
"png",
"jpg",
@@ -67,10 +73,11 @@
"size": undefined,
"themeIndexes": Set {},
"themesDir": "__WORKSPACE__/tests/fixtures/config/themes",
"timeout": 120000,
"title": "Yuno",
+ "tmpPrefix": ".vs-1732561414116.",
"vfmOptions": Object {
"disableFormatHtml": false,
"hardLineBreaks": false,
},
"viewer": undefined,
❯ tests/config.test.ts:150:18
|
Run yarn test:
tests/config.test.ts#L156
Error: Snapshot `imports single html file 1` mismatched
- Expected
+ Received
@@ -1,9 +1,15 @@
Object {
"author": undefined,
"bleed": undefined,
"browserType": "chromium",
+ "cliFlags": Object {
+ "configPath": undefined,
+ "input": "__WORKSPACE__/tests/fixtures/config/sample.html",
+ "logLevel": "info",
+ "targets": Array [],
+ },
"copyAsset": Object {
"excludes": Array [],
"fileExtensions": Array [
"png",
"jpg",
@@ -57,10 +63,11 @@
"size": undefined,
"themeIndexes": Set {},
"themesDir": "__WORKSPACE__/tests/fixtures/config/themes",
"timeout": 120000,
"title": undefined,
+ "tmpPrefix": ".vs-1732561414129.",
"vfmOptions": Object {
"disableFormatHtml": false,
"hardLineBreaks": false,
},
"viewer": undefined,
❯ tests/config.test.ts:156:18
|
Run yarn test:
tests/config.test.ts#L180
Error: Snapshot `yields a config with single input and vivliostyle config 1` mismatched
- Expected
+ Received
@@ -1,9 +1,16 @@
Object {
"author": "author",
"bleed": undefined,
"browserType": "firefox",
+ "cliFlags": Object {
+ "config": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "configPath": "__WORKSPACE__/tests/fixtures/config/vivliostyle.config.valid.1.cjs",
+ "input": "__WORKSPACE__/tests/fixtures/config/nestedDir/01.md",
+ "logLevel": "info",
+ "targets": Array [],
+ },
"copyAsset": Object {
"excludes": Array [
"*a*",
],
"fileExtensions": Array [
@@ -117,10 +124,11 @@
},
},
"themesDir": "__WORKSPACE__/tests/fixtures/config/workspaceDir/themes",
"timeout": 1,
"title": "title",
+ "tmpPrefix": ".vs-1732561414142.",
"vfmOptions": Object {
"disableFormatHtml": true,
"hardLineBreaks": true,
},
"viewer": undefined,
❯ tests/config.test.ts:180:18
|
Run yarn test:
tests/config.test.ts#L193
Error: Snapshot `imports a EPUB file 1` mismatched
- Expected
+ Received
@@ -1,9 +1,23 @@
Object {
"author": undefined,
"bleed": undefined,
"browserType": "chromium",
+ "cliFlags": Object {
+ "configPath": undefined,
+ "input": "__WORKSPACE__/tests/fixtures/epubs/adaptive.epub",
+ "logLevel": "info",
+ "output": Array [
+ "epub.pdf",
+ ],
+ "targets": Array [
+ Object {
+ "format": "pdf",
+ "path": "epub.pdf",
+ },
+ ],
+ },
"copyAsset": Object {
"excludes": Array [],
"fileExtensions": Array [
"png",
"jpg",
@@ -58,10 +72,11 @@
"size": undefined,
"themeIndexes": Set {},
"themesDir": "__WORKSPACE__/tests/fixtures/epubs/themes",
"timeout": 120000,
"title": undefined,
+ "tmpPrefix": ".vs-1732561414151.",
"vfmOptions": Object {
"disableFormatHtml": false,
"hardLineBreaks": false,
},
"viewer": undefined,
❯ tests/config.test.ts:193:18
|
Run yarn test:
tests/config.test.ts#L203
Error: Snapshot `imports a EPUB OPF file 1` mismatched
- Expected
+ Received
@@ -1,9 +1,23 @@
Object {
"author": undefined,
"bleed": undefined,
"browserType": "chromium",
+ "cliFlags": Object {
+ "configPath": undefined,
+ "input": "__WORKSPACE__/tests/fixtures/epubs/adaptive/OPS/content.opf",
+ "logLevel": "info",
+ "output": Array [
+ "epub-opf.pdf",
+ ],
+ "targets": Array [
+ Object {
+ "format": "pdf",
+ "path": "epub-opf.pdf",
+ },
+ ],
+ },
"copyAsset": Object {
"excludes": Array [],
"fileExtensions": Array [
"png",
"jpg",
@@ -58,10 +72,11 @@
"size": undefined,
"themeIndexes": Set {},
"themesDir": "__WORKSPACE__/tests/fixtures/epubs/adaptive/OPS/themes",
"timeout": 120000,
"title": undefined,
+ "tmpPrefix": ".vs-1732561414228.",
"vfmOptions": Object {
"disableFormatHtml": false,
"hardLineBreaks": false,
},
"viewer": undefined,
❯ tests/config.test.ts:203:18
|
Run yarn test:
tests/config.test.ts#L213
Error: Snapshot `imports a webbook compliant to W3C Web publication 1` mismatched
- Expected
+ Received
@@ -1,9 +1,23 @@
Object {
"author": undefined,
"bleed": undefined,
"browserType": "chromium",
+ "cliFlags": Object {
+ "configPath": undefined,
+ "input": "__WORKSPACE__/tests/fixtures/webbooks/w3c-webpub/publication.json",
+ "logLevel": "info",
+ "output": Array [
+ "w3c-webpub",
+ ],
+ "targets": Array [
+ Object {
+ "format": "webpub",
+ "path": "w3c-webpub",
+ },
+ ],
+ },
"copyAsset": Object {
"excludes": Array [],
"fileExtensions": Array [
"png",
"jpg",
@@ -55,10 +69,11 @@
"size": undefined,
"themeIndexes": Set {},
"themesDir": "__WORKSPACE__/tests/fixtures/webbooks/w3c-webpub/themes",
"timeout": 120000,
"title": undefined,
+ "tmpPrefix": ".vs-1732561414233.",
"vfmOptions": Object {
"disableFormatHtml": false,
"hardLineBreaks": false,
},
"viewer": undefined,
❯ tests/config.test.ts:213:18
|
Loading