From e07c4925632b528c56002b4388ff33ac89401172 Mon Sep 17 00:00:00 2001 From: James Henry Date: Tue, 3 Oct 2023 14:37:36 +0100 Subject: [PATCH] chore(core): cleanup --- e2e/release/src/release.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/e2e/release/src/release.test.ts b/e2e/release/src/release.test.ts index b9f902ad1a05c..5b08280014e4a 100644 --- a/e2e/release/src/release.test.ts +++ b/e2e/release/src/release.test.ts @@ -14,8 +14,6 @@ import { updateJson, } from '@nx/e2e/utils'; import { execSync } from 'child_process'; -import { writeFileSync } from 'fs'; -import { join } from 'path'; expect.addSnapshotSerializer({ serialize(str: string) { @@ -589,7 +587,7 @@ describe('nx release', () => { ).length ).toEqual(3); - // It should resolve the current version from the registry once... + // It should resolve the current version from the git tag once... expect( versionOutput3.match( new RegExp( @@ -621,8 +619,8 @@ describe('nx release', () => { ).length ).toEqual(1); - writeFileSync( - join(tmpProjPath(), `${pkg1}/my-file.txt`), + createFile( + `${pkg1}/my-file.txt`, 'update for conventional-commits testing' ); @@ -662,7 +660,7 @@ describe('nx release', () => { ).length ).toEqual(3); - // It should resolve the current version from the registry once... + // It should resolve the current version from the git tag once... expect( versionOutput4.match( new RegExp(