diff --git a/packages/core/src/compiler/timingCompiler.test.ts b/packages/core/src/compiler/timingCompiler.test.ts index a3f411f8e0..6ddbfe7098 100644 --- a/packages/core/src/compiler/timingCompiler.test.ts +++ b/packages/core/src/compiler/timingCompiler.test.ts @@ -19,6 +19,23 @@ it("source contains no raw NUL bytes", () => { }); describe("compileTimingAttrs", () => { + it.each(["", " ", "0s", "0abc", "0px", "-1s", "Infinity", "NaN"])( + "does not partially parse invalid literal data-duration=%j", + (duration) => { + const html = `