feat(dev): Ignore common test files in routes and islands (#1039)

Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
Sebastian Gräßl
2023-09-11 16:05:55 +02:00
committed by GitHub
co-authored by Marvin Hagemeister Asher Gomez
parent 59fff11903
commit e01ef2d8a0
16 changed files with 142 additions and 5 deletions
+9
View File
@@ -19,6 +19,15 @@ export interface RouterOptions {
* @default {false}
*/
trailingSlash?: boolean;
/**
* Configures the pattern of files to ignore in islands and routes.
*
* By default Fresh will ignore test files,
* for example files with a `.test.ts` or a `_test.ts` suffix.
*
* @default {/(?:[^/]*_|[^/]*\.|)test\.(?:ts|tsx|mts|js|mjs|jsx|)\/*$/}
*/
ignoreFilePattern?: RegExp;
}
export type RenderFunction = (