Add eslint-plugin-jest (#11119)

* chore: add eslint-plugin-jest

* chore: update test sources

* chore: suppress preset-env debug log when linting
This commit is contained in:
Huáng Jùnliàng
2020-02-11 00:11:32 +09:00
committed by GitHub
parent a4d5c6253e
commit 865d5155c2
12 changed files with 89 additions and 20 deletions

View File

@@ -219,7 +219,7 @@ describe("@babel/template", function() {
});
});
describe.only(".syntacticPlaceholders", () => {
describe(".syntacticPlaceholders", () => {
it("works in function body", () => {
const output = template(`function f() %%A%%`)({
A: t.blockStatement([]),
@@ -302,12 +302,10 @@ describe("@babel/template", function() {
});
it("replaces identifiers", () => {
expect(() => {
const output = template(`FOO`)({
FOO: t.numericLiteral(1),
});
expect(generator(output).code).toMatchInlineSnapshot(`"1;"`);
const output = template(`FOO`)({
FOO: t.numericLiteral(1),
});
expect(generator(output).code).toMatchInlineSnapshot(`"1;"`);
});
it("doesn't mix placeholder styles", () => {