-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dont release specific apply changes based on public/private
- Loading branch information
1 parent
3d7e5e8
commit 9bdad61
Showing
9 changed files
with
137 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const t = require('tap') | ||
const setup = require('../setup.js') | ||
|
||
t.test('no plugin for root only', async (t) => { | ||
const s = await setup(t) | ||
await s.apply() | ||
|
||
const releaseConfig = await s.readJson('release-please-config.json') | ||
t.equal(releaseConfig.plugins, undefined) | ||
}) | ||
|
||
t.test('has plugin for workspace', async (t) => { | ||
const s = await setup(t, { | ||
workspaces: { | ||
a: 'a', | ||
}, | ||
}) | ||
await s.apply() | ||
|
||
const releaseConfig = await s.readJson('release-please-config.json') | ||
t.strictSame(releaseConfig.plugins, ['node-workspace']) | ||
}) | ||
|
||
t.test('no plugin for private workspace', async (t) => { | ||
const s = await setup(t, { | ||
workspaces: { | ||
a: { | ||
private: true, | ||
}, | ||
}, | ||
}) | ||
await s.apply() | ||
|
||
const releaseConfig = await s.readJson('release-please-config.json') | ||
t.equal(releaseConfig.plugins, undefined) | ||
}) |