Skip to content

Commit 7eb7dc7

Browse files
committed
Fix test setup
1 parent 46cb8a0 commit 7eb7dc7

17 files changed

+26
-26
lines changed

test/runtime/scripts/breakpoints/generateBreakpointsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateBreakpointsTsCode } from "../../../../src/scripts/cssToTs/breakpoints";
2+
import { generateBreakpointsTsCode } from "../../../../src/scripts/build/cssToTs/breakpoints";
33

44
it("Generation of TS code for breakpoints", () => {
55
const input = `

test/runtime/scripts/breakpoints/parseBreakpointsValues.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { it, expect } from "vitest";
2-
import { parseBreakpointsValues } from "../../../../src/scripts/cssToTs/breakpoints";
2+
import { parseBreakpointsValues } from "../../../../src/scripts/build/cssToTs/breakpoints";
33
import type {
44
BreakpointsValues,
55
MediaQueryByBreakpoint
6-
} from "../../../../src/scripts/cssToTs/breakpoints";
6+
} from "../../../../src/scripts/build/cssToTs/breakpoints";
77
//import { assert } from "tsafe/assert";
88
//import { same } from "evt/tools/inDepth/same";
99
import { id } from "tsafe";

test/runtime/scripts/classNames/generateClassNamesTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateClassNamesTsCode } from "../../../../src/scripts/cssToTs/classNames";
2+
import { generateClassNamesTsCode } from "../../../../src/scripts/build/cssToTs/classNames";
33

44
it("Generation of TS code for fr class names", () => {
55
const input = `

test/runtime/scripts/classNames/parseClassNames.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { parseClassNames } from "../../../../src/scripts/cssToTs/classNames";
2+
import { parseClassNames } from "../../../../src/scripts/build/cssToTs/classNames";
33

44
it("Parsing of fr classnames", () => {
55
const input = `

test/runtime/scripts/colorDecisions/generateGetColorDecisionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateGetColorDecisionsTsCode } from "../../../../src/scripts/cssToTs/colorDecisions";
2+
import { generateGetColorDecisionsTsCode } from "../../../../src/scripts/build/cssToTs/colorDecisions";
33

44
it("Generates the correct TS code for breakpoints", () => {
55
const input = `

test/runtime/scripts/colorDecisions/parseColorDecision.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { it, expect } from "vitest";
2-
import { parseColorDecision } from "../../../../src/scripts/cssToTs/colorDecisions";
3-
import type { ColorDecision } from "../../../../src/scripts/cssToTs/colorDecisions";
2+
import { parseColorDecision } from "../../../../src/scripts/build/cssToTs/colorDecisions";
3+
import type { ColorDecision } from "../../../../src/scripts/build/cssToTs/colorDecisions";
44

55
it("Color decisions to be successfully parsed", () => {
66
const rawCssCode = `

test/runtime/scripts/colorDecisions/parseColorDecisionName.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from "vitest";
2-
import { createParseColorDecisionName } from "../../../../src/scripts/cssToTs/colorDecisions";
3-
import type { ParsedColorDecisionName } from "../../../../src/scripts/cssToTs/colorDecisions";
2+
import { createParseColorDecisionName } from "../../../../src/scripts/build/cssToTs/colorDecisions";
3+
import type { ParsedColorDecisionName } from "../../../../src/scripts/build/cssToTs/colorDecisions";
44

55
describe("Color decision css variable correctly parsed", () => {
66
const rawCssCode = `

test/runtime/scripts/colorOptions/generateGetColorOptionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateGetColorOptionsTsCode } from "../../../../src/scripts/cssToTs/colorOptions";
2+
import { generateGetColorOptionsTsCode } from "../../../../src/scripts/build/cssToTs/colorOptions";
33

44
it("Generate the correct TS code for colors options", () => {
55
const input = `

test/runtime/scripts/colorOptions/getThemePath.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from "vitest";
2-
import { getThemePath } from "../../../../src/scripts/cssToTs/colorOptions";
3-
import type { ParsedColorOptionName } from "../../../../src/scripts/cssToTs/colorOptions";
2+
import { getThemePath } from "../../../../src/scripts/build/cssToTs/colorOptions";
3+
import type { ParsedColorOptionName } from "../../../../src/scripts/build/cssToTs/colorOptions";
44

55
describe("", () => {
66
it("test 1", () => {

test/runtime/scripts/colorOptions/parseColorOptionName.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from "vitest";
2-
import { parseColorOptionName } from "../../../../src/scripts/cssToTs/colorOptions";
3-
import type { ParsedColorOptionName } from "../../../../src/scripts/cssToTs/colorOptions";
2+
import { parseColorOptionName } from "../../../../src/scripts/build/cssToTs/colorOptions";
3+
import type { ParsedColorOptionName } from "../../../../src/scripts/build/cssToTs/colorOptions";
44

55
describe("Successfully parse color option names", () => {
66
it("test 1", () => {

test/runtime/scripts/colorOptions/parseColorOptions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { it, expect } from "vitest";
2-
import { parseColorOptions } from "../../../../src/scripts/cssToTs/colorOptions";
3-
import type { ColorOption } from "../../../../src/scripts/cssToTs/colorOptions";
2+
import { parseColorOptions } from "../../../../src/scripts/build/cssToTs/colorOptions";
3+
import type { ColorOption } from "../../../../src/scripts/build/cssToTs/colorOptions";
44

55
it("Successfully parse color options", () => {
66
const rawCssCode = `

test/runtime/scripts/cssVariable.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
createGetCssVariable,
44
isInvariantAcrossTheme,
55
isInvariantAcrossScreenSizes
6-
} from "../../../src/scripts/cssToTs/cssVariable";
7-
import type { CssVariableValue } from "../../../src/scripts/cssToTs/cssVariable";
6+
} from "../../../src/scripts/build/cssToTs/cssVariable";
7+
import type { CssVariableValue } from "../../../src/scripts/build/cssToTs/cssVariable";
88
import { assert } from "tsafe/assert";
99

1010
const rawCssCode = `

test/runtime/scripts/icons/getPatchedRawCssCodeForCompatWithRemixIcon.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { getPatchedRawCssCodeForCompatWithRemixIcon } from "../../../../src/scripts/cssToTs/icons";
2+
import { getPatchedRawCssCodeForCompatWithRemixIcon } from "../../../../src/scripts/build/icons";
33

44
it("Successfully generates patched css for remixicon support", () => {
55
const rawCssCode = `

test/runtime/scripts/spacing/generateSpacingTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateSpacingTsCode } from "../../../../src/scripts/cssToTs/spacing";
2+
import { generateSpacingTsCode } from "../../../../src/scripts/build/cssToTs/spacing";
33

44
it("Generates spacing TS code", () => {
55
const rawCssCode = `

test/runtime/scripts/spacing/parseSpacing.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { it, expect } from "vitest";
2-
import { parseSpacing } from "../../../../src/scripts/cssToTs/spacing";
3-
import type { SpacingTokenAndValue } from "../../../../src/scripts/cssToTs/spacing";
2+
import { parseSpacing } from "../../../../src/scripts/build/cssToTs/spacing";
3+
import type { SpacingTokenAndValue } from "../../../../src/scripts/build/cssToTs/spacing";
44

55
it("Parse spacing successfully", () => {
66
const input = `

test/runtime/scripts/typography/generateTypographyTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { it, expect } from "vitest";
2-
import { generateTypographyTsCode } from "../../../../src/scripts/cssToTs/typography";
2+
import { generateTypographyTsCode } from "../../../../src/scripts/build/cssToTs/typography";
33

44
it("Generates typography TS code", () => {
55
const rawCssCode = `

test/runtime/scripts/typography/parseTypographyVariants.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { it, expect } from "vitest";
2-
import { parseTypographyVariants } from "../../../../src/scripts/cssToTs/typography";
3-
import type { TypographyVariant } from "../../../../src/scripts/cssToTs/typography";
2+
import { parseTypographyVariants } from "../../../../src/scripts/build/cssToTs/typography";
3+
import type { TypographyVariant } from "../../../../src/scripts/build/cssToTs/typography";
44

55
it("Successfully parse typography variants", () => {
66
const rawCssCode = `

0 commit comments

Comments
 (0)