diff --git a/package.json b/package.json index 7b27f59..1922d25 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "eslint-config-prettier": "^3.0.1", "eslint-plugin-babel": "^5.0.0", "eslint-plugin-import": "^2.13.0", - "eslint-plugin-jest": "^21.1.0", + "eslint-plugin-jest": "^22.0.0", "git-exec-and-restage": "^1.0.1", "husky": "^0.14.3", "jest": "^23.5.0", diff --git a/test/config.test.js b/test/config.test.js index f9edd0b..6ebf189 100644 --- a/test/config.test.js +++ b/test/config.test.js @@ -3,7 +3,7 @@ jest.mock("../src/utils/yaml"); import { get, commonBefore, commonAfter } from "./nuxt"; -describe("config", async () => { +describe("config", () => { beforeAll(async () => { await commonBefore(); }); diff --git a/test/dev.test.js b/test/dev.test.js index 756a336..d276519 100644 --- a/test/dev.test.js +++ b/test/dev.test.js @@ -1,6 +1,6 @@ import { get, commonBefore, commonAfter } from "./nuxt"; -describe("module dev mode", async () => { +describe("module dev mode", () => { beforeAll(async () => { await commonBefore({ dev: true }); }); diff --git a/test/generate.test.js b/test/generate.test.js index 438eb79..21477b8 100644 --- a/test/generate.test.js +++ b/test/generate.test.js @@ -1,6 +1,6 @@ import { get, generate, commonAfter } from "./nuxt"; -describe("module generate mode", async () => { +describe("module generate mode", () => { beforeAll(async () => { await generate(); }); diff --git a/test/module.test.js b/test/module.test.js index 3279852..2c97e3e 100644 --- a/test/module.test.js +++ b/test/module.test.js @@ -1,6 +1,6 @@ import { get, commonBefore, commonAfter } from "./nuxt"; -describe("module", async () => { +describe("module", () => { beforeAll(async () => { await commonBefore(); }); diff --git a/test/nuxt.js b/test/nuxt.js index 47f3d3d..dd134be 100644 --- a/test/nuxt.js +++ b/test/nuxt.js @@ -5,7 +5,7 @@ import serveStatic from "koa-static"; import baseConfig from "./fixture/nuxt.config"; -jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000; +jest.setTimeout(60000); process.env.PORT = process.env.PORT || 5060; process.env.NODE_ENV = "production"; diff --git a/yarn.lock b/yarn.lock index f45224b..69550cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3269,9 +3269,9 @@ eslint-plugin-import@^2.12.0, eslint-plugin-import@^2.13.0: read-pkg-up "^2.0.0" resolve "^1.6.0" -eslint-plugin-jest@^21.1.0: - version "21.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.2.0.tgz#292044df9cf0866ad9c530e78e6528fae287b926" +eslint-plugin-jest@^22.0.0: + version "22.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.0.0.tgz#87dc52bbdd47f37f23bf2b10bb8469458bb3ed68" eslint-rule-composer@^0.1.1: version "0.1.1"