@nuxtjs/module-test-utils
Test utilities for modules Nuxt.js
Last updated 2 months ago by ricardogobbosouza .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/module-test-utils 
SYNC missed versions from official npm registry.

@nuxtjs/module-test-utils

npm version npm downloads Circle CI Codecov License

Test utilities for modules Nuxt.js

???? Release Notes

Setup

Add @nuxtjs/module-test-utils dependency to your project

yarn add --dev @nuxtjs/module-test-utils # or npm install --save-dev @nuxtjs/module-test-utils

Usage

const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')

describe('basic', () => {
  let nuxt

  beforeAll(async () => {
    ({ nuxt } = await setup(loadConfig(__dirname)))
  }, 60000)

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

  test('render', async () => {
    const html = await get('/')
    expect(html).toContain('Works!')
  })
})

License

MIT License

Copyright (c) - Nuxt Community

Current Tags

  • 1.6.1                                ...           latest (2 months ago)

10 Versions

  • 1.6.1                                ...           2 months ago
  • 1.6.0                                ...           2 months ago
  • 1.5.0                                ...           7 months ago
  • 1.4.0                                ...           7 months ago
  • 1.3.1                                ...           7 months ago
  • 1.3.0                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.0                                ...           9 months ago
  • 1.0.0                                ...           10 months ago
  • 0.0.1                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 26
Last Day 1
Last Week 12
Last Month 32
Dependencies (6)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |