Skip to content

Commit

Permalink
Update Jest snapshot
Browse files Browse the repository at this point in the history
with disabling Prettier formatting due to not supported Prettier 3.
  • Loading branch information
yhatt committed Oct 28, 2023
1 parent 96f571e commit 490d0d5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 51 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '.*\\.d\\.ts'],
coverageThreshold: { global: { lines: 95 } },
preset: 'ts-jest/presets/js-with-babel',
prettierPath: null,
setupFiles: ['<rootDir>/jest.setup.js'],
testEnvironment: 'node',
transformIgnorePatterns: [`/node_modules/(?!${esModules.join('|')})`],
Expand Down
104 changes: 53 additions & 51 deletions src/language/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,32 +112,33 @@ describe('Auto completions', () => {
const labels = list.items.map((item) => item.label).sort()

expect(labels).toMatchInlineSnapshot(`
[
"author",
"backgroundColor",
"backgroundImage",
"backgroundPosition",
"backgroundRepeat",
"backgroundSize",
"class",
"color",
"description",
"footer",
"header",
"headingDivider",
"image",
"keywords",
"marp",
"math",
"paginate",
"size",
"style",
"theme",
"title",
"transition",
"url",
]
`)
[
"author",
"backgroundColor",
"backgroundImage",
"backgroundPosition",
"backgroundRepeat",
"backgroundSize",
"class",
"color",
"description",
"footer",
"header",
"headingDivider",
"image",
"keywords",
"lang",
"marp",
"math",
"paginate",
"size",
"style",
"theme",
"title",
"transition",
"url",
]
`)

// The insert text has semicolon
expect(list.items[0].insertText).toBe(`${list.items[0].label}: `)
Expand All @@ -155,31 +156,32 @@ describe('Auto completions', () => {
const labels = list.items.map((item) => item.label).sort()

expect(labels).toMatchInlineSnapshot(`
[
"author",
"backgroundColor",
"backgroundImage",
"backgroundPosition",
"backgroundRepeat",
"backgroundSize",
"class",
"color",
"description",
"footer",
"header",
"headingDivider",
"image",
"keywords",
"math",
"paginate",
"size",
"style",
"theme",
"title",
"transition",
"url",
]
`)
[
"author",
"backgroundColor",
"backgroundImage",
"backgroundPosition",
"backgroundRepeat",
"backgroundSize",
"class",
"color",
"description",
"footer",
"header",
"headingDivider",
"image",
"keywords",
"lang",
"math",
"paginate",
"size",
"style",
"theme",
"title",
"transition",
"url",
]
`)
expect(labels).not.toContain('marp')
})

Expand Down

0 comments on commit 490d0d5

Please sign in to comment.