@prosopo/config 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,10 @@ const config = require("vitest/config");
|
|
|
3
3
|
const vitePluginCloseAndCopy = require("./vite-plugin-close-and-copy.cjs");
|
|
4
4
|
const vitePluginSourcemapExclude = require("./vite-plugin-sourcemap-exclude.cjs");
|
|
5
5
|
function vite_test_config() {
|
|
6
|
+
const testTypeEnv = process.env.TEST_TYPE || "";
|
|
7
|
+
const testTypes = testTypeEnv.trim().split(",");
|
|
8
|
+
const testTypeGlob = `@(|${testTypes.map((t) => t ? `.${t.trim()}` : "").join("|")})`;
|
|
9
|
+
console.log(`Filtering tests by type: ${testTypeGlob}`);
|
|
6
10
|
return config.defineConfig({
|
|
7
11
|
build: {
|
|
8
12
|
minify: false,
|
|
@@ -18,7 +22,7 @@ function vite_test_config() {
|
|
|
18
22
|
test: {
|
|
19
23
|
//root: getRootDir(),
|
|
20
24
|
reporters: ["basic"],
|
|
21
|
-
include: [
|
|
25
|
+
include: [`src/**/*${testTypeGlob}.@(test|spec).@(mts|cts|mjs|cjs|js|ts|tsx|jsx)`],
|
|
22
26
|
watch: false,
|
|
23
27
|
watchExclude: ["**/node_modules/**", "**/dist/**"],
|
|
24
28
|
logHeapUsage: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.test.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.test.config.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"vite.test.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.test.config.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,wCAyCb"}
|
|
@@ -2,6 +2,10 @@ import { defineConfig } from "vitest/config";
|
|
|
2
2
|
import VitePluginCloseAndCopy from "./vite-plugin-close-and-copy.js";
|
|
3
3
|
import VitePluginSourcemapExclude from "./vite-plugin-sourcemap-exclude.js";
|
|
4
4
|
export default function () {
|
|
5
|
+
const testTypeEnv = process.env.TEST_TYPE || '';
|
|
6
|
+
const testTypes = testTypeEnv.trim().split(",");
|
|
7
|
+
const testTypeGlob = `@(|${testTypes.map(t => t ? `.${t.trim()}` : '').join('|')})`;
|
|
8
|
+
console.log(`Filtering tests by type: ${testTypeGlob}`);
|
|
5
9
|
return defineConfig({
|
|
6
10
|
build: {
|
|
7
11
|
minify: false,
|
|
@@ -16,7 +20,7 @@ export default function () {
|
|
|
16
20
|
},
|
|
17
21
|
test: {
|
|
18
22
|
reporters: ["basic"],
|
|
19
|
-
include: [
|
|
23
|
+
include: [`src/**/*${testTypeGlob}.@(test|spec).@(mts|cts|mjs|cjs|js|ts|tsx|jsx)`],
|
|
20
24
|
watch: false,
|
|
21
25
|
watchExclude: ["**/node_modules/**", "**/dist/**"],
|
|
22
26
|
logHeapUsage: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.test.config.js","sourceRoot":"","sources":["../../src/vite/vite.test.config.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,sBAAsB,MAAM,iCAAiC,CAAC;AACrE,OAAO,0BAA0B,MAAM,oCAAoC,CAAC;AAE5E,MAAM,CAAC,OAAO;IACb,OAAO,YAAY,CAAC;QACnB,KAAK,EAAE;YACN,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,KAAK;YAChB,aAAa,EAAE;gBACd,kBAAkB,EAAE,CAAC;gBACrB,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE;oBACP,SAAS,EAAE,KAAK;iBAChB;aACD;SACD;QACD,IAAI,EAAE;YAEL,SAAS,EAAE,CAAC,OAAO,CAAC;YACpB,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"vite.test.config.js","sourceRoot":"","sources":["../../src/vite/vite.test.config.ts"],"names":[],"mappings":"AAaA,OAAO,EAA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E,IAAI,EAAE,CAAC;YACxD,sBAAsB,EAAE;SACxB;KACD,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Prosopo config library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@babel/plugin-transform-react-jsx": "^7.24.6",
|
|
40
40
|
"@babel/plugin-transform-runtime": "^7.24.3",
|
|
41
41
|
"@babel/preset-env": "^7.24.5",
|
|
42
|
-
"@prosopo/common": "2.0.
|
|
43
|
-
"@prosopo/types": "2.0.
|
|
44
|
-
"@prosopo/util": "2.0.
|
|
42
|
+
"@prosopo/common": "2.0.3",
|
|
43
|
+
"@prosopo/types": "2.0.3",
|
|
44
|
+
"@prosopo/util": "2.0.3",
|
|
45
45
|
"@rollup/plugin-alias": "^5.1.0",
|
|
46
46
|
"@rollup/plugin-babel": "^6.0.4",
|
|
47
47
|
"@rollup/plugin-commonjs": "^25.0.7",
|