Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Sep 27, 2023
1 parent d8d033c commit b6b6a02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// prefer global Buffer to not initialize the whole module
"n/prefer-global/buffer": "off",
"@typescript-eslint/no-invalid-this": "off",
"@typescript-eslint/quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"no-restricted-imports": [
"error",
{
Expand Down
1 change: 0 additions & 1 deletion examples/vue/test/imports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ describe('import vue components', () => {
})

test('template string imports as expected', async () => {
// eslint-disable-next-line @typescript-eslint/quotes
const cmp = await import(`../components/Hello.vue`)
expect(cmp).toBeDefined()
})
Expand Down
1 change: 0 additions & 1 deletion test/browser/test/mocked.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ test('imports are still the same', async () => {
// @ts-expect-error typescript resolution
await expect(import('../src/calculator')).resolves.toBe(calculatorModule)
// @ts-expect-error typescript resolution
// eslint-disable-next-line @typescript-eslint/quotes
await expect(import(`../src/calculator`)).resolves.toBe(calculatorModule)
})
10 changes: 5 additions & 5 deletions test/core/test/jest-expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ describe('async expect', () => {
expect.unreachable()
}
catch (err: any) {
expect(err.message).toMatchInlineSnapshot('"promise resolved \\"{ foo: { bar: 42 } }\\" instead of rejecting"')
expect(err.message).toMatchInlineSnapshot(`"promise resolved "{ foo: { bar: 42 } }" instead of rejecting"`)
expect(err.stack).toContain('jest-expect.test.ts')
}

Expand All @@ -781,7 +781,7 @@ describe('async expect', () => {
expect.unreachable()
}
catch (err: any) {
expect(err.message).toMatchInlineSnapshot('"promise rejected \\"Error: some error { foo: { bar: 42 } }\\" instead of resolving"')
expect(err.message).toMatchInlineSnapshot(`"promise rejected "Error: some error { foo: { bar: 42 } }" instead of resolving"`)
expect(err.stack).toContain('jest-expect.test.ts')
}
})
Expand Down Expand Up @@ -849,9 +849,9 @@ it('correctly prints diff with asymmetric matchers', () => {
+ Received
Object {
\\"a\\": Any<Number>,
- \\"b\\": Any<Function>,
+ \\"b\\": \\"string\\",
"a": Any<Number>,
- "b": Any<Function>,
+ "b": "string",
}"
`)
}
Expand Down

0 comments on commit b6b6a02

Please sign in to comment.