Skip to content
Snippets Groups Projects
Unverified Commit f1e738fc authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

ci(sdk): Fix can't build SDK from master (#50319)

* Prevent tests file from being imported when building SDK

* Exclude more test files from SDK build
parent 8513bc97
No related branches found
Tags embedding-sdk-0.52.2-nightly
No related merge requests found
Showing
with 7 additions and 14 deletions
......@@ -21,7 +21,7 @@ import {
} from "metabase-types/api/mocks";
import { createMockState } from "metabase-types/store/mocks";
import { PublicOrEmbeddedDashboardPage } from "./PublicOrEmbeddedDashboardPage";
import { PublicOrEmbeddedDashboardPage } from "../PublicOrEmbeddedDashboardPage";
const MOCK_TOKEN =
"eyJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZSI6eyJkYXNoYm9hcmQiOjExfSwicGFyYW1zIjp7fSwiaWF0IjoxNzEyNjg0NTA1LCJfZW1iZWRkaW5nX3BhcmFtcyI6e319.WbZTB-cQYh4gjh61ZzoLOcFbJ6j6RlOY3GS4fwzv3W4";
......
......@@ -23,7 +23,7 @@ import {
} from "metabase-types/api/mocks";
import { createMockState } from "metabase-types/store/mocks";
import { PublicOrEmbeddedQuestion } from "./PublicOrEmbeddedQuestion";
import { PublicOrEmbeddedQuestion } from "../PublicOrEmbeddedQuestion";
registerStaticVisualizations();
......
......@@ -9,7 +9,7 @@ import { registerVisualization } from "metabase/visualizations";
import Visualization from "metabase/visualizations/components/Visualization";
import { SmartScalar } from "./SmartScalar";
import { mockSeries } from "./test-mocks";
import { mockSeries } from "./tests/test-mocks";
export default {
title: "viz/SmartScalar",
......
......@@ -9,16 +9,9 @@
"emitDeclarationOnly": true,
"outDir": "./resources/embedding-sdk/dist",
"paths": {
"*": [
"./frontend/src/*",
"./frontend/test/*",
"./enterprise/frontend/src/*",
"./enterprise/frontend/test/*"
],
"cljs/*": [
"./target/cljs_release/*"
]
},
"*": ["./frontend/src/*", "./enterprise/frontend/src/*"],
"cljs/*": ["./target/cljs_release/*"]
}
},
"include": [
"frontend/src/**/*.ts",
......@@ -39,4 +32,4 @@
"**/testMocks.ts",
"**/*.stories.tsx"
]
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment