Skip to content

Commit

Permalink
Add test code
Browse files Browse the repository at this point in the history
  • Loading branch information
eliangcs committed Feb 1, 2024
1 parent dacbf6d commit d5f1c45
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/cli/src/tests/utils/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,15 @@ describe('build in workspaces', function () {
)
);
uuidPackageJson.version.should.equal('8.3.2');

// Make sure node_modules/app-1 and node_modules/app-2 are not included
// in the build
fs.existsSync(
path.join(unzipPath, 'node_modules', 'app-1')
).should.be.false();
fs.existsSync(
path.join(unzipPath, 'node_modules', 'app-2')
).should.be.false();
});

it('should build in app-2', async () => {
Expand Down Expand Up @@ -495,5 +504,14 @@ describe('build in workspaces', function () {
)
);
uuidPackageJson.version.should.equal('9.0.1');

// Make sure node_modules/app-1 and node_modules/app-2 are not included
// in the build
fs.existsSync(
path.join(unzipPath, 'node_modules', 'app-1')
).should.be.false();
fs.existsSync(
path.join(unzipPath, 'node_modules', 'app-2')
).should.be.false();
});
});

0 comments on commit d5f1c45

Please sign in to comment.