commit-and-tag-version 11.2.4 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/git.spec.js CHANGED
@@ -109,7 +109,7 @@ describe('git', function () {
109
109
  }
110
110
  })
111
111
 
112
- describe('tagPrefix', () => {
112
+ describe('tagPrefix', function () {
113
113
  // TODO: Use unmocked git-semver-tags and stage a git environment
114
114
  it('will add prefix onto tag based on version from package', async function () {
115
115
  writePackageJson('1.2.0')
@@ -243,8 +243,8 @@ describe('git', function () {
243
243
  getPackageVersion().should.equal('1.1.0-0')
244
244
  })
245
245
 
246
- describe('gitTagFallback', () => {
247
- it('defaults to 1.0.0 if no tags in git history', async () => {
246
+ describe('gitTagFallback', function () {
247
+ it('defaults to 1.0.0 if no tags in git history', async function () {
248
248
  shell.rm('package.json')
249
249
  mock({ bump: 'minor' })
250
250
  await exec({})
@@ -252,7 +252,7 @@ describe('git', function () {
252
252
  output.stdout.should.include('v1.1.0')
253
253
  })
254
254
 
255
- it('bases version on greatest version tag, if tags are found', async () => {
255
+ it('bases version on greatest version tag, if tags are found', async function () {
256
256
  shell.rm('package.json')
257
257
  mock({ bump: 'minor', tags: ['v3.9.0', 'v5.0.0', 'v3.0.0'] })
258
258
  await exec({})
@@ -261,7 +261,7 @@ describe('git', function () {
261
261
  })
262
262
  })
263
263
 
264
- describe('configuration', () => {
264
+ describe('configuration', function () {
265
265
  it('.versionrc : releaseCommitMessageFormat', async function () {
266
266
  fs.writeFileSync(
267
267
  '.versionrc',
@@ -358,7 +358,7 @@ describe('git', function () {
358
358
  )
359
359
 
360
360
  mock({ bump: 'minor' })
361
- expect(exec('--patch')).to.be.rejectedWith(/precommit-failure/)
361
+ await expect(exec('--patch')).to.be.rejectedWith(/precommit-failure/)
362
362
  })
363
363
 
364
364
  it('should allow an alternate commit message to be provided by precommit script', async function () {
@@ -0,0 +1,18 @@
1
+ <Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>net7.0</TargetFramework>
5
+ <Nullable>enable</Nullable>
6
+ <ImplicitUsings>enable</ImplicitUsings>
7
+ <Version>6.3.1</Version>
8
+ </PropertyGroup>
9
+
10
+ <ItemGroup>
11
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.10"/>
12
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.10"/>
13
+ <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.10"/>
14
+ <PackageReference Include="Microsoft.Identity.Web" Version="1.16.0"/>
15
+ <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0"/>
16
+ </ItemGroup>
17
+
18
+ </Project>
@@ -0,0 +1,18 @@
1
+ <Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>net7.0</TargetFramework>
5
+ <Nullable>enable</Nullable>
6
+ <ImplicitUsings>enable</ImplicitUsings>
7
+ <Version>6.4.0</Version>
8
+ </PropertyGroup>
9
+
10
+ <ItemGroup>
11
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.10"/>
12
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.10"/>
13
+ <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.10"/>
14
+ <PackageReference Include="Microsoft.Identity.Web" Version="1.16.0"/>
15
+ <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0"/>
16
+ </ItemGroup>
17
+
18
+ </Project>
@@ -12,7 +12,7 @@ function exec (opt) {
12
12
  return require('../index')(opt)
13
13
  }
14
14
 
15
- describe('presets', () => {
15
+ describe('presets', function () {
16
16
  beforeEach(function () {
17
17
  shell.rm('-rf', 'tmp')
18
18
  shell.config.silent = true
@@ -26,7 +26,7 @@ function mockNpm () {
26
26
  }
27
27
  }
28
28
 
29
- describe('utils', () => {
29
+ describe('utils', function () {
30
30
  it('detectPMByLockFile should work', async function () {
31
31
  const { setLockFile } = mockNpm()
32
32
  const { detectPMByLockFile } = require('../lib/detect-package-manager')
package/renovate.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": [
3
- "config:base"
4
- ],
5
- "pinVersions": false,
6
- "rebaseStalePrs": true,
7
- "gitAuthor": null,
8
- "ignoreDeps": ["decamelize"]
9
- }