Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/chart_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function xaxis_type_for(
NUMERIC_X_CHART_TYPES.includes(chart_type)
)
return "numeric";
return undefined;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/fixture.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "node:path";
import { test as base, expect } from "@playwright/test";

const fixturesDirectory = path.resolve(__dirname, "fixtures");
const fixturesDirectory = path.resolve(import.meta.dirname, "fixtures");

export const test = base.extend({
page: async ({ page }, use, testInfo) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/fixtures/big-number/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from "../../fixture";
import { expect, test } from "../../fixture.ts";

for (const theme of ["light", "dark"]) {
test(`colored values match their cards in the ${theme} theme`, async ({
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/fixtures/chart/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, type Page, test } from "../../fixture";
import { expect, type Page, test } from "../../fixture.ts";

type ChartPoint = { x: string | number | Date; y: number | null };

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/fixtures/form/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from "../../fixture";
import { expect, test } from "../../fixture.ts";

const fields = [
{ selector: 'input[name="modern_text"]', name: "text" },
Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/fixtures/map/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, type Page, test } from "../../fixture";
import { expect, type Page, test } from "../../fixture.ts";

const PARIS_WITHOUT_ITS_LONGITUDE = "48.85,";
const NOT_COORDINATES = "somewhere nice";
Expand Down
1 change: 1 addition & 0 deletions tests/end-to-end/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "end-to-end",
"version": "1.0.0",
"type": "module",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
12 changes: 11 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@
"moduleResolution": "bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"erasableSyntaxOnly": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"strict": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": false,
"types": []
"types": [],
"noImplicitReturns": true
},
"include": ["frontend/src"]
}
Loading