@nuxtjs/module-test-utils
Test utilities for modules Nuxt.js
Last updated 7 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.3                                ...           latest (7 months ago)
  • 2.0.0-3                                ...           prerelease (5 months ago)

16 Versions

  • 2.0.0-3                                ...           5 months ago
  • 2.0.0-2                                ...           5 months ago
  • 2.0.0-1                                ...           5 months ago
  • 2.0.0-0                                ...           5 months ago
  • 1.6.3                                ...           7 months ago
  • 1.6.2                                ...           7 months ago
  • 1.6.1                                ...           10 months ago
  • 1.6.0                                ...           10 months ago
  • 1.5.0                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 3
This Week 10
This Month 15
Last Day 7
Last Week 2
Last Month 39
Dependencies (5)
Dev Dependencies (10)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |