Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/builder/pipeline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ let tmpDir;

beforeAll(() => {
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-pipeline-'));
for (const file of fs.readdirSync(FIXTURE_DIR)) {
fs.copyFileSync(path.join(FIXTURE_DIR, file), path.join(tmpDir, file));
}
fs.cpSync(FIXTURE_DIR, tmpDir, {
recursive: true,
filter: (src) => path.basename(src) !== '.codegraph',
});
});

afterAll(() => {
Expand Down
7 changes: 4 additions & 3 deletions tests/integration/scoped-rebuild.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ let tmpDir;

function copyFixture() {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-scoped-'));
for (const file of fs.readdirSync(FIXTURE_DIR)) {
fs.copyFileSync(path.join(FIXTURE_DIR, file), path.join(dir, file));
}
fs.cpSync(FIXTURE_DIR, dir, {
recursive: true,
filter: (src) => path.basename(src) !== '.codegraph',
});
return dir;
}

Expand Down
Loading