@sveltejs/kit 1.0.6 → 1.0.7
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.
package/package.json
CHANGED
|
@@ -76,6 +76,9 @@ function create_matchers(config, cwd) {
|
|
|
76
76
|
matchers[type] = matcher_file;
|
|
77
77
|
}
|
|
78
78
|
} else {
|
|
79
|
+
// Allow for matcher test collocation
|
|
80
|
+
if (type.endsWith('.test') || type.endsWith('.spec')) continue;
|
|
81
|
+
|
|
79
82
|
throw new Error(
|
|
80
83
|
`Matcher names can only have underscores and alphanumeric characters — "${file}" is invalid`
|
|
81
84
|
);
|