Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Nov 10, 2024
1 parent 39ee01c commit fdc9579
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions examples/projects/plugin-1/src/lib/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ describe('plugin', () => {
const testPath = join('sort', 'users.json');
vol.fromJSON(
{
[testPath]: JSON.stringify([{ name: 'b' }, { name: 'a' }]),
[testPath]: JSON.stringify([
{ name: 'B' },
{ name: 'A' },
{ name: 'C' },
]),
},
MEMFS_VOLUME
);

await expect(plugin1(testPath)).resolves.not.toThrow();

const content = JSON.parse(await vol.promises.readFile(testPath));
expect(content).toStrictEqual([{ name: 'a' }, { name: 'b' }]);
expect(content).toStrictEqual([
{ name: 'C' },
{ name: 'B' },
{ name: 'A' },
]);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ describe('runNpmInstallExecutor', () => {
'install',
'[email protected]',
'--include=prod',
'--include=dev',
'--include=optional',
// @TODO implement options
//'--include=dev',
//'--include=optional',
'--include=peer',
'--no-fund',
'--no-shrinkwrap',
Expand Down

0 comments on commit fdc9579

Please sign in to comment.