mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
refine test file exclusion logic by expanding ignore patterns and updating regex handling
This commit is contained in:
@@ -117,7 +117,7 @@ function createIgnoreRegex(globPatterns) {
|
||||
|
||||
// For absolute paths, we don't want to force the pattern to match from the beginning
|
||||
// but we still want to ensure it matches to the end of the path segment
|
||||
regexPattern = '(?:^|/)' + regexPattern + (pattern.endsWith('*') ? '' : '$');
|
||||
regexPattern = '(?:^|/)' + regexPattern;
|
||||
|
||||
return regexPattern;
|
||||
}).filter(pattern => pattern !== null);
|
||||
|
||||
4
npm-packages/meteor-rspack/package-lock.json
generated
4
npm-packages/meteor-rspack/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@meteorjs/rspack",
|
||||
"version": "1.1.0-beta.5",
|
||||
"version": "1.1.0-beta.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@meteorjs/rspack",
|
||||
"version": "1.1.0-beta.5",
|
||||
"version": "1.1.0-beta.6",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@meteorjs/rspack",
|
||||
"version": "1.1.0-beta.5",
|
||||
"version": "1.1.0-beta.6",
|
||||
"description": "Configuration logic for using Rspack in Meteor projects",
|
||||
"main": "index.js",
|
||||
"type": "commonjs",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
export const DEFAULT_RSPACK_VERSION = '1.7.1';
|
||||
|
||||
export const DEFAULT_METEOR_RSPACK_VERSION = '1.1.0-beta.5';
|
||||
export const DEFAULT_METEOR_RSPACK_VERSION = '1.1.0-beta.6';
|
||||
|
||||
export const DEFAULT_METEOR_RSPACK_REACT_HMR_VERSION = '1.4.3';
|
||||
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
react-router*
|
||||
folder-to-ignore/
|
||||
file-to-ignore.app-test.js
|
||||
**/glob-ignore/*.app-test.js
|
||||
prefix-*
|
||||
*-suffix
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
describe("file-to-ignore.app-test.js pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
describe("folder-to-ignore/ pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
describe("prefix-* pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
describe("Ignore", () => {
|
||||
describe("react-router* pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
describe("*-suffix pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
describe("**/glob-ignore/*.app-test.js pattern", () => {
|
||||
it("should not run as ignored", () => {
|
||||
throw new Error("test should be ignored by eager test loading");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user