Skip to content

Commit

Permalink
chore(deps): remove unnecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Jul 8, 2020
1 parent c46f3bd commit c347c6f
Show file tree
Hide file tree
Showing 3 changed files with 4,952 additions and 3,614 deletions.
15 changes: 2 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,21 @@
"devDependencies": {
"@babel/core": "latest",
"@babel/preset-env": "latest",
"@commitlint/cli": "latest",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "latest",
"@nuxtjs/eslint-config": "latest",
"@nuxtjs/module-test-utils": "latest",
"babel-eslint": "latest",
"babel-jest": "latest",
"codecov": "latest",
"eslint": "latest",
"eslint-config-prettier": "latest",
"eslint-config-standard": "latest",
"eslint-loader": "latest",
"eslint-plugin-import": "latest",
"eslint-plugin-jest": "latest",
"eslint-plugin-node": "latest",
"eslint-plugin-nuxt": "latest",
"eslint-plugin-prettier": "latest",
"eslint-plugin-promise": "latest",
"eslint-plugin-standard": "latest",
"eslint-plugin-vue": "latest",
"get-port": "latest",
"husky": "latest",
"jest": "latest",
"nuxt-edge": "latest",
"nuxt-i18n": "latest",
"prettier": "latest",
"request": "latest",
"request-promise-native": "latest",
"standard-version": "latest",
"set-value": "2.0.1"
}
Expand Down
22 changes: 7 additions & 15 deletions test/module.test.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
jest.setTimeout(60000)
const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')

const { Nuxt, Builder } = require('nuxt-edge')
describe('module', () => {
let nuxt

const config = require('../example/nuxt.config')
// config.dev = false

let nuxt

describe('basic', () => {
beforeAll(async () => {
nuxt = new Nuxt(config)
await nuxt.ready()
await new Builder(nuxt).build()
await nuxt.server.listen(3000, 'localhost')
})
;({ nuxt } = await setup(loadConfig(__dirname, '../../example')))
}, 60000)

afterAll(async () => {
await nuxt.close()
})

test('render', async () => {
const context = {}
const { html } = await nuxt.server.renderRoute('/', context)
// const context = {}
const html = await get('/')
expect(html).toContain('page')
})
})
Loading

0 comments on commit c347c6f

Please sign in to comment.