mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-14 23:22:54 +00:00
test(ruby): model resolved lockfile specs
This commit is contained in:
parent
1354b0d130
commit
fb16f20ef0
1 changed files with 9 additions and 4 deletions
|
|
@ -28,9 +28,14 @@ describe('Ruby dependency resolution config (#2966)', () => {
|
|||
);
|
||||
writeFileSync(
|
||||
join(repo, 'Gemfile.lock'),
|
||||
['GEM', ' specs:', ' actionpack (8.0.0)', ' rack (~> 3.0)', 'DEPENDENCIES'].join(
|
||||
'\n',
|
||||
),
|
||||
[
|
||||
'GEM',
|
||||
' specs:',
|
||||
' actionpack (8.0.0)',
|
||||
' rack (~> 3.0)',
|
||||
' rack (3.0.0)',
|
||||
'DEPENDENCIES',
|
||||
].join('\n'),
|
||||
);
|
||||
mkdirSync(join(repo, 'packages', 'widget'), { recursive: true });
|
||||
writeFileSync(
|
||||
|
|
@ -47,7 +52,7 @@ describe('Ruby dependency resolution config (#2966)', () => {
|
|||
const root = config?.scopesByDirectory.get('');
|
||||
const widget = config?.scopesByDirectory.get('packages/widget');
|
||||
|
||||
expect(root?.externalRequirePrefixes).toEqual(new Set(['rails', 'pg', 'actionpack']));
|
||||
expect(root?.externalRequirePrefixes).toEqual(new Set(['rails', 'pg', 'actionpack', 'rack']));
|
||||
expect(widget?.externalRequirePrefixes).toEqual(new Set(['dry-types', 'dry/types', 'rspec']));
|
||||
expect(widget?.localLoadRootsByPrefix.get('widget')).toEqual(['packages/widget/src']);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue