@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -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
  );