-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): remove unnecessary deps
- Loading branch information
Showing
3 changed files
with
4,952 additions
and
3,614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
}) | ||
}) |
Oops, something went wrong.