0.1.1 • Published 5 years ago
@renanhangai/nuxt-test v0.1.1
nuxt-test
Create tests using tape for your nuxt components.
Getting Started
Just add the module to your nuxt.config
// nuxt.config.js
module.exports = {
// ...
modules: [
['@renanhangai/nuxt-test', { enable: +process.env.NODE_ENV_TEST }]
],
};
And create your tests on the components
<template>
<div />
</template>
<script>
export default {
};
</script>
<test>
export default async function ( t, component ) {
t.pass( 'ok' );
}
</test>