Skip to content

Commit

Permalink
wp-env: Add config parser tests for subdirectory and ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 4, 2021
1 parent e718fef commit d0a7874
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/env/lib/config/test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ describe( 'readConfig', () => {
'WordPress/gutenberg',
'WordPress/gutenberg#master',
'WordPress/gutenberg#5.0',
'WordPress/theme-experiments/tt1-blocks#f3d2c0d',
],
} )
)
Expand Down Expand Up @@ -394,6 +395,16 @@ describe( 'readConfig', () => {
path: expect.stringMatching( /^\/.*gutenberg$/ ),
basename: 'gutenberg',
},
{
type: 'git',
url:
'https://github.com/WordPress/theme-experiments.git',
ref: 'f3d2c0d',
path: expect.stringMatching(
/^\/.*theme-experiments\/tt1-blocks$/
),
basename: 'tt1-blocks',
},
],
};
expect( config.env.tests ).toMatchObject( matchObj );
Expand Down

0 comments on commit d0a7874

Please sign in to comment.