Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: do not build test files

Abdullah Atta092016f94231
diff --git a/packages/editor/test-utils/index.ts b/packages/editor/test-utils/index.ts
index 01a326891..33616c52b 100644
--- a/packages/editor/test-utils/index.ts
+++ b/packages/editor/test-utils/index.ts
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import "@/tests.setup";
+import "./tests.setup";
import { Editor, AnyExtension, Extensions } from "@tiptap/core";
import StarterKit from "@tiptap/starter-kit";
import { builders, NodeBuilder } from "prosemirror-test-builder";
diff --git a/packages/editor/tests.setup.ts b/packages/editor/test-utils/tests.setup.ts
similarity index 100%
rename from packages/editor/tests.setup.ts
rename to packages/editor/test-utils/tests.setup.ts
diff --git a/packages/editor/tsconfig.json b/packages/editor/tsconfig.json
index b736cc96a..9f3ca046e 100644
--- a/packages/editor/tsconfig.json
+++ b/packages/editor/tsconfig.json
@@ -9,5 +9,6 @@
"@/*": ["*"]
}
},
- "include": ["src/"]
+ "exclude": ["src/**/*.test.ts"],
+ "include": ["src/**/*"]
}
diff --git a/packages/editor/tsconfig.tests.json b/packages/editor/tsconfig.tests.json
index 048a4b0c6..45ffcc826 100644
--- a/packages/editor/tsconfig.tests.json
+++ b/packages/editor/tsconfig.tests.json
@@ -15,5 +15,5 @@
"swc": true,
"require": ["tsconfig-paths/register"]
},
- "include": ["src/", "index.ts"]
+ "include": ["src/"]
}