test: use vitest instead of jest

This commit is contained in:
Johannes Loher 2022-08-22 22:05:14 +02:00
parent 7d953d5a50
commit bb6d22d14a
12 changed files with 530 additions and 2288 deletions

View file

@ -2,11 +2,12 @@
//
// SPDX-License-Identifier: MIT
import copy from "@guanghechen/rollup-plugin-copy";
import livereload from "rollup-plugin-livereload";
import styles from "rollup-plugin-styles";
import { swc } from "rollup-plugin-swc3";
import copy from "@guanghechen/rollup-plugin-copy";
import { distDirectory, name, sourceDirectory } from "./tools/const.js";
import { convertJSONToPack } from "./tools/json-pack-tools.js";
@ -41,9 +42,8 @@ const config = {
},
plugins: [
swc({
minify: isProduction,
jsc: {
minify: {
minify: isProduction && {
sourceMap: true,
mangle: {
keepClassNames: true,