# vue2-swc-jest

> SWC plugin to transform Jest tests (ts/js) for Vue 2

Latest version **0.2.1** (published 2023-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue2-swc-jest
pnpm add vue2-swc-jest
yarn add vue2-swc-jest
bun add vue2-swc-jest
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2023-10-07 |
| First published | 2023-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 5 |
| Unpacked size | 65.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sampo Kivistö |
| Maintainers | havunen |
| Keywords | swc, jest, vue, typescript, jest vue, jest vue transform, jest vue preprocessor, vue jest, vue jest, vue jest transform, vue jest preprocessor, swc vue jest, swc vue jest, swc vue jest transform, swc vue jest preprocessor |

## Links

- npm: https://www.npmjs.com/package/vue2-swc-jest
- Repository: https://github.com/Havunen/vue2-swc-jest
- Homepage: https://github.com/Havunen/vue2-swc-jest#readme
- Issues: https://github.com/Havunen/vue2-swc-jest/issues
- npm.io page: https://npm.io/package/vue2-swc-jest

## Dependencies (5)

- [css-tree](https://npm.io/package/css-tree.md) ^2.3.1
- [@swc/core](https://npm.io/package/@swc/core.md) ^1.3.91
- [source-map](https://npm.io/package/source-map.md) ^0.7.4
- [@cspotcode/source-map](https://npm.io/package/@cspotcode/source-map.md) ^0.8.0
- [@vue/component-compiler-utils](https://npm.io/package/@vue/component-compiler-utils.md) ^3.3.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2023-10-07
- 0.2.0 — 2023-10-07
- 0.1.1 — 2023-10-05
- 0.1.0 — 2023-10-05
- 0.0.6 — 2023-10-04
- 0.0.5 — 2023-10-03
- 0.0.4 — 2023-10-01
- 0.0.3 — 2023-10-01
- 0.0.2 — 2023-09-26
- 0.0.1 — 2023-09-26

## README

# vue2-swc-jest

SWC - Jest transformer for Vue Single File Components.

This plugin is designed to be used with `@swc/jest`

This plugin exists to replace babel from jest - vue compilation process using SWC.

Jest configuration:

```
  transform: {
    '\\.ts$': '@swc/jest',
    '\\.vue$': 'vue2-swc-jest',
  },
  globals: {
    'vue2-swc-jest': {
      templateCompiler: {
        prettify: false,
      },
    },
  },
```

---
_Source: https://npm.io/package/vue2-swc-jest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
