0.15.0 • Published 4 months ago

@terminal-nerds/vitest-config v0.15.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@terminal-nerds/vitest-config

package version badge

➡️ Extendable vitest icon configuration, part of the terminal-nerds/configs project.


Prerequisites

node.js version support badge supported vitest version badge

ℹ️ This configuration package require these tools to use locally on your device(s):

  1. node.js icon Latest Node.js LTS (Long-Term Support) version
  2. One of Node.js package managers:
    • pnpm icon
    • yarn icon
    • npm icon
  3. Latest vitest icon version

Basic usage

👣 Follow the steps below:

  1. Install it with the node.js icon package manager of your choice (in our case, we use pnpm icon).

     pnpm install --save-dev vitest @terminal-nerds/vitest-config
  2. Create a vitest configuration file - vitest.config.ts.

  3. Import a specific options from this module package configuration and use it.\ NOTE: This one below is an example!

    import { WITH_COVERAGE_OPTIONS } from "@terminal-nerds/vitest-config";
    import { defineConfig } from "vitest/config";
    
    // https://vitest.dev/config/
    export default defineConfig({
    	test: {
    		...WITH_COVERAGE_OPTIONS,
    		// Override the config from there, if neccessary
    	},
    });

📖 For the vitest CLI usage, please refer to its documentation.


Used extensions

ExtensionVersionLoading condition(s)
@vitest/coverage-c8@vitest/coverage-c8 version badge
@vitest/ui@vitest/ui version badge

Available options

Dependencies badge

OptionsPurpose
BASE_OPTIONSBase options for general usage with Vitest
WITH_COVERAGE_OPTIONSBase options extended by options which uses a c8 coverage

Security

workflow security badge

🔐 For more information, please refer to the Security section at the root of the terminal-nerds/configs monorepo.


Contributing

contributors badge

🤝 Contributions of any kind are welcome!

Please refer to the monorepo (terminal-nerds/configs) project's CONTRIBUTING file for more information if you wish to get involved.


License

license badge

⚖️ For more information, please refer to the License section at the root of the terminal-nerds/configs monorepo.

0.15.0

4 months ago

0.14.0

4 months ago

0.13.0

6 months ago

0.11.0

8 months ago

0.12.0

6 months ago

0.10.0

11 months ago

0.9.0

1 year ago

0.8.0

1 year ago

0.5.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.3.0

1 year ago

0.4.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago