Skip to content

Commit

Permalink
quick fix for Windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 committed May 14, 2022
1 parent fb8185d commit 0a71380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __tests__/get-options-overrides.spec.ts
@@ -1,6 +1,7 @@
import { afterAll, test, expect, jest } from "@jest/globals";
import * as path from "path";
import * as ts from "typescript";
import { normalizePath as normalize } from "@rollup/pluginutils";
import { remove } from "fs-extra";

import { makeStubbedContext } from "./fixtures/context";
Expand All @@ -13,8 +14,8 @@ setTypescriptModule(ts);
const local = (x: string) => path.resolve(__dirname, x);
const cacheDir = local("__temp/get-options-overrides");

// filter expects an absolute path and resolve include/exclude to process.cwd() by default: https://github.com/ezolenko/rollup-plugin-typescript2/pull/321#discussion_r873077874
const filtPath = (path: string) => `${process.cwd()}/${path}`;
// filter expects an absolute path and resolves include/exclude to process.cwd() by default: https://github.com/ezolenko/rollup-plugin-typescript2/pull/321#discussion_r873077874
const filtPath = (relPath: string) => normalize(`${process.cwd()}/${relPath}`);

afterAll(() => remove(cacheDir));

Expand Down

0 comments on commit 0a71380

Please sign in to comment.