@@ -116,7 +116,7 @@ test.serial(
116116
117117test . serial ( 'Verify npm auth and package' , async t => {
118118Object . assign ( process . env , npmRegistry . authEnv ) ;
119- const pkg = { name :'valid-token' , publishConfig :{ registry :npmRegistry . url } } ;
119+ const pkg = { name :'valid-token' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
120120await outputJson ( './package.json' , pkg ) ;
121121await t . notThrows ( t . context . m . verifyConditions ( { } , { options :{ } , logger :t . context . logger } ) ) ;
122122
@@ -127,7 +127,7 @@ test.serial('Verify npm auth and package', async t => {
127127
128128test . serial ( 'Verify npm auth and package from a sub-directory' , async t => {
129129Object . assign ( process . env , npmRegistry . authEnv ) ;
130- const pkg = { name :'valid-token' , publishConfig :{ registry :npmRegistry . url } } ;
130+ const pkg = { name :'valid-token' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
131131await outputJson ( './dist/package.json' , pkg ) ;
132132await t . notThrows ( t . context . m . verifyConditions ( { pkgRoot :'dist' } , { options :{ } , logger :t . context . logger } ) ) ;
133133
@@ -139,7 +139,7 @@ test.serial('Verify npm auth and package from a sub-directory', async t => {
139139test . serial ( 'Verify npm auth and package with "npm_config_registry" env var set by yarn' , async t => {
140140Object . assign ( process . env , npmRegistry . authEnv ) ;
141141process . env . npm_config_registry = 'https://registry.yarnpkg.com' ; // eslint-disable-line camelcase
142- const pkg = { name :'valid-token' , publishConfig :{ registry :npmRegistry . url } } ;
142+ const pkg = { name :'valid-token' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
143143await outputJson ( './package.json' , pkg ) ;
144144await t . notThrows ( t . context . m . verifyConditions ( { } , { options :{ } , logger :t . context . logger } ) ) ;
145145
@@ -150,7 +150,7 @@ test.serial('Verify npm auth and package with "npm_config_registry" env var set
150150
151151test . serial ( 'Return nothing if no version if published' , async t => {
152152Object . assign ( process . env , npmRegistry . authEnv ) ;
153- const pkg = { name :'not-published' , publishConfig :{ registry :npmRegistry . url } } ;
153+ const pkg = { name :'not-published' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
154154await outputJson ( './package.json' , pkg ) ;
155155const nextRelease = await t . context . m . getLastRelease ( { } , { options :{ } , logger :t . context . logger } ) ;
156156
@@ -243,7 +243,7 @@ test('Throw SemanticReleaseError if publish "pkgRoot" option in getLastRelease i
243243} ) ;
244244
245245test ( 'Throw SemanticReleaseError if publish "npmPublish" option in verifyConditions is not a Boolean' , async t => {
246- const pkg = { name :'invalid-npmPublish' , publishConfig :{ registry :npmRegistry . url } } ;
246+ const pkg = { name :'invalid-npmPublish' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
247247await outputJson ( './package.json' , pkg ) ;
248248const npmPublish = 42 ;
249249const error = await t . throws (
@@ -261,7 +261,7 @@ test('Throw SemanticReleaseError if publish "npmPublish" option in verifyConditi
261261} ) ;
262262
263263test ( 'Throw SemanticReleaseError if publish "tarballDir" option in verifyConditions is not a String' , async t => {
264- const pkg = { name :'invalid-tarballDir' , publishConfig :{ registry :npmRegistry . url } } ;
264+ const pkg = { name :'invalid-tarballDir' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
265265await outputJson ( './package.json' , pkg ) ;
266266const tarballDir = 42 ;
267267const error = await t . throws (
@@ -279,7 +279,7 @@ test('Throw SemanticReleaseError if publish "tarballDir" option in verifyConditi
279279} ) ;
280280
281281test ( 'Throw SemanticReleaseError if publish "pkgRoot" option in verifyConditions is not a String' , async t => {
282- const pkg = { name :'invalid-pkgRoot' , publishConfig :{ registry :npmRegistry . url } } ;
282+ const pkg = { name :'invalid-pkgRoot' , version : '0.0.0-dev' , publishConfig :{ registry :npmRegistry . url } } ;
283283await outputJson ( './dist/package.json' , pkg ) ;
284284const pkgRoot = 42 ;
285285const error = await t . throws (