Skip to content

Commit

Permalink
fix(extraction test): remove manual copies of 'existing'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cherel committed Oct 21, 2024
1 parent 068de89 commit 2ecc64d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions packages/cli/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import extractExperimentalCommand from "../src/lingui-extract-experimental"
import { command as compileCommand } from "../src/lingui-compile"
import fs from "fs/promises"
import os from "os"
import nodepath from "path"
import glob from "glob"
import nodepath from "path"
import { makeConfig } from "@lingui/conf"
import { listingToHumanReadable, readFsToJson } from "../src/tests"
import { getConsoleMockCalls, mockConsole } from "@lingui/jest-mocks"
Expand Down Expand Up @@ -180,12 +180,6 @@ describe("E2E Extractor Test", () => {
"extractor-experimental"
)

await fs.cp(
nodepath.join(rootDir, "existing"),
nodepath.join(rootDir, "actual"),
{ recursive: true }
)

await mockConsole(async (console) => {
const config = makeConfig({
rootDir: rootDir,
Expand Down Expand Up @@ -240,12 +234,6 @@ describe("E2E Extractor Test", () => {
"extractor-experimental-clean"
)

await fs.cp(
nodepath.join(rootDir, "existing"),
nodepath.join(rootDir, "actual"),
{ recursive: true }
)

await mockConsole(async (console) => {
const result = await extractExperimentalCommand(
makeConfig({
Expand Down Expand Up @@ -314,11 +302,10 @@ describe("E2E Extractor Test", () => {
],
}),
{
files: [nodepath.join(rootDir, "fixtures", "file-b.tsx")]
files: [nodepath.join(rootDir, "fixtures", "file-b.tsx")],
}
)

compareFolders(actualPath, expectedPath)
})

})

0 comments on commit 2ecc64d

Please sign in to comment.