Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vitest. An vitest environment with support for testing code that needs a Nuxt runtime environment
···11+MIT License
22+33+Copyright (c) 2022 Daniel Roe
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+<h1 align="center">vitest-environment-nuxt</h1>
22+<p align="center">An in-development vitest environment with support for testing code that needs a Nuxt runtime environment.</p>
33+44+<p align="center">
55+66+[![npm version][npm-version-src]][npm-version-href]
77+[![npm downloads][npm-downloads-src]][npm-downloads-href]
88+[![Github Actions][github-actions-src]][github-actions-href]
99+[![Codecov][codecov-src]][codecov-href]
1010+1111+</p>
1212+1313+> An in-development vitest environment with support for testing code that needs a Nuxt runtime environment
1414+1515+⚠️ This library is in active development and you should pin the patch version before using.
1616+1717+## Quick Start
1818+1919+First install `vitest-environment-nuxt`:
2020+2121+```bash
2222+yarn add --dev vitest-environment-nuxt
2323+2424+# or npm
2525+npm i -D vitest-environment-nuxt
2626+2727+# or pnpm
2828+pnpm add -D vitest-environment-nuxt
2929+```
3030+3131+## 💻 Development
3232+3333+- Clone this repository
3434+- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
3535+- Install dependencies using `pnpm install`
3636+- Stub the library using `pnpm dev:prepare`
3737+- Run interactive tests using `pnpm test`
3838+3939+## License
4040+4141+Made with ❤️
4242+4343+Published under [MIT License](./LICENCE).
4444+4545+<!-- Badges -->
4646+4747+[npm-version-src]: https://img.shields.io/npm/v/vitest-environment-nuxt?style=flat-square
4848+[npm-version-href]: https://npmjs.com/package/vitest-environment-nuxt
4949+[npm-downloads-src]: https://img.shields.io/npm/dm/vitest-environment-nuxt?style=flat-square
5050+[npm-downloads-href]: https://npmjs.com/package/vitest-environment-nuxt
5151+[github-actions-src]: https://img.shields.io/github/workflow/status/danielroe/vitest-environment-nuxt/ci/main?style=flat-square
5252+[github-actions-href]: https://github.com/danielroe/vitest-environment-nuxt/actions?query=workflow%3Aci
5353+[codecov-src]: https://img.shields.io/codecov/c/gh/danielroe/vitest-environment-nuxt/main?style=flat-square
5454+[codecov-href]: https://codecov.io/gh/danielroe/vitest-environment-nuxt