[frameworks] fix blitzjs detection (#9166)

The framework detectors do not support this syntax:

```
path: 'blitz.config.(js|ts)',
```

This PR fixes framework detection for "Blitz.js (Legacy)".
This commit is contained in:
Sean Massa
2023-01-05 10:29:39 -06:00
committed by GitHub
parent c9c5e148f7
commit fe184618f4
2 changed files with 13 additions and 2 deletions

View File

@@ -420,5 +420,13 @@ describe('DetectorFilesystem', () => {
expect(await detectFramework({ fs, frameworkList })).toBe('zola');
});
it('Detect Blitz.js (Legacy)', async () => {
const fs = new VirtualFilesystem({
'blitz.config.js': '// some config',
});
expect(await detectFramework({ fs, frameworkList })).toBe('blitzjs');
});
});
});