Skip to content

Commit

Permalink
chore: Resolve tests to ts during development
Browse files Browse the repository at this point in the history
This avoids having to build the project during development.
  • Loading branch information
bebraw committed Sep 3, 2020
1 parent fcd5167 commit cf5b5fe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions resolve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = process.env.CI ? require("./dist") : require("./src");
6 changes: 5 additions & 1 deletion test/customize.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import assert from "assert";
import { mergeWithCustomize, customizeArray, customizeObject } from "../";
import {
mergeWithCustomize,
customizeArray,
customizeObject,
} from "../resolve";
import customizeTests from "../helpers/customize-tests";

describe("Merge strategy", function () {
Expand Down
2 changes: 1 addition & 1 deletion test/merge-with-customize.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from "assert";
import webpack from "webpack";
import { mergeWithCustomize } from "../";
import { mergeWithCustomize } from "../resolve";

describe("Merge", function () {
customizeMergeTests(mergeWithCustomize);
Expand Down
2 changes: 1 addition & 1 deletion test/merge.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from "assert";
import merge, { merge as defaultMerge } from "../";
import merge, { merge as defaultMerge } from "../resolve";
import mergeTests from "../helpers/merge-tests";
import loadersKeys from "../helpers/loaders-keys";

Expand Down
2 changes: 1 addition & 1 deletion test/unique.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from "assert";
import webpack from "webpack";
import { mergeWithCustomize, unique } from "../";
import { mergeWithCustomize, unique } from "../resolve";

describe("Unique", function () {
it("should allow unique definitions", function () {
Expand Down

0 comments on commit cf5b5fe

Please sign in to comment.