diff --git a/scripts/plugins/esbuild-plugin-iife.extensions.d.ts b/scripts/plugins/esbuild-plugin-iife.extensions.d.ts index 616ec4d..9be0efa 100644 --- a/scripts/plugins/esbuild-plugin-iife.extensions.d.ts +++ b/scripts/plugins/esbuild-plugin-iife.extensions.d.ts @@ -1,5 +1,4 @@ declare module '*?iife' { - // eslint-disable-next-line @typescript-eslint/naming-convention const content: string export default content } diff --git a/src/lib/utilities/log.ts b/src/lib/utilities/log.ts index 1e82add..9441aa6 100644 --- a/src/lib/utilities/log.ts +++ b/src/lib/utilities/log.ts @@ -5,7 +5,6 @@ import chalk from 'chalk' const isNode = process?.versions?.node !== undefined -// eslint-disable-next-line @typescript-eslint/naming-convention const log = { verbose: false, diff --git a/test/tldr-to-image.test.ts b/test/tldr-to-image.test.ts index 59fb9e3..0f6bb43 100644 --- a/test/tldr-to-image.test.ts +++ b/test/tldr-to-image.test.ts @@ -25,9 +25,17 @@ describe('save to svg (default behavior)', () => { tempAssetPath = path.join(os.tmpdir(), `tldraw-cli-test-${Date.now().toString()}`) await fs.mkdir(tempAssetPath, { recursive: true }) - const files = await fs.readdir('./test/assets/valid/', { withFileTypes: true }) - for (const { name, parentPath } of files) { - await fs.copyFile(path.join(parentPath, name), `${tempAssetPath}/${name}`) + const sourceDirectory = './test/assets/valid/' + const files = await fs.readdir(sourceDirectory, { withFileTypes: true }) + for (const { name } of files) { + // Construct the full path of the source file using sourceDirectory and the file name + const fullSourcePath = path.join(sourceDirectory, name) + + // Construct the destination path + const destinationPath = path.join(tempAssetPath, name) + + // Copy the file to the destination path + await fs.copyFile(fullSourcePath, destinationPath) } const tempFiles = await fs.readdir(tempAssetPath, { withFileTypes: true })