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:
co-authored by
Marvin Hagemeister
Asher Gomez
parent
59fff11903
commit
e01ef2d8a0
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user