mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
updated cypress tsconfig to avoid relative imports
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React from "react";
|
||||
|
||||
import { Container } from "../../src/components/Container";
|
||||
import { Container } from "src/components/Container";
|
||||
|
||||
describe("<Container />", () => {
|
||||
it("renders", () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OasstApiClient, OasstError } from "../../src/lib/oasst_api_client";
|
||||
import { OasstApiClient, OasstError } from "src/lib/oasst_api_client";
|
||||
|
||||
describe("Contract test for Oasst API", function () {
|
||||
// Assumes this is running the mock server.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"target": "es5",
|
||||
"lib": ["es5", "dom"],
|
||||
"types": ["cypress", "node"],
|
||||
"baseUrl": "..",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react-jsx"
|
||||
|
||||
Reference in New Issue
Block a user