@@ -8,7 +8,7 @@ beforeEach(() => {
88 vol . reset ( ) ; // reset the state of in-memory fs
99} ) ;
1010
11- test ( 'detects go - mod' , async ( ) => {
11+ test ( 'detects go mod' , async ( ) => {
1212 vol . fromJSON ( {
1313 'mockdata/go.mod' : '' ,
1414 } ) ;
@@ -17,7 +17,7 @@ test('detects go - mod', async () => {
1717 expect ( detected ) . toContain ( 'go' ) ;
1818} ) ;
1919
20- test ( 'detects go - work' , async ( ) => {
20+ test ( 'detects go work' , async ( ) => {
2121 vol . fromJSON ( {
2222 'mockdata/go.work' : '' ,
2323 } ) ;
@@ -66,6 +66,24 @@ test('detects php', async () => {
6666 expect ( detected ) . toContain ( 'composer' ) ;
6767} ) ;
6868
69+ test ( 'detects playwright js' , async ( ) => {
70+ vol . fromJSON ( {
71+ 'mockdata/playwright.config.js' : '' ,
72+ } ) ;
73+
74+ const detected = await detectFrameworks ( 'mockdata' ) ;
75+ expect ( detected ) . toContain ( 'playwright' ) ;
76+ } ) ;
77+
78+ test ( 'detects playwright ts' , async ( ) => {
79+ vol . fromJSON ( {
80+ 'mockdata/playwright.config.ts' : '' ,
81+ } ) ;
82+
83+ const detected = await detectFrameworks ( 'mockdata' ) ;
84+ expect ( detected ) . toContain ( 'playwright' ) ;
85+ } ) ;
86+
6987test ( 'detects python' , async ( ) => {
7088 vol . fromJSON ( {
7189 'mockdata/poetry.lock' : '' ,
0 commit comments