shibo - playwright tests failing and I get this...

playwright tests failing and I get this error in the fake-server:
Error: Invalid author/package/release URL
at handleReleasePreview (file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:239:11)
at handler (file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:294:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:12644:11
Error: Invalid author/package/release URL
at handleReleasePreview (file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:239:11)
at handler (file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:294:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///Users/shibo/tscircuit/tscircuit.com/node_modules/.vite-temp/vite.config.ts.timestamp-1758825409785-85daf9d015e73.mjs:12644:11
26 Replies
shibo
shiboOP2w ago
@Seve any idea what's going on? *most playwright tests
Seve
Seve2w ago
Hmm ive never seen this cc @DOPΣ , not sure what this is about
DOPΣ
DOPΣ2w ago
yeah ,its logging in generated-index.js
shibo
shiboOP2w ago
know a fix?
DOPΣ
DOPΣ2w ago
stop logging in catch blocks, in generatedindex js ig
Seve
Seve2w ago
that file sucks and should be broken up it's literally the worst anti patterns ever
shibo
shiboOP2w ago
I guess it has nothing to do with my playwright tests failing, btw I just pulled main; no changes made
Seve
Seve2w ago
throws errors for control logic
DOPΣ
DOPΣ2w ago
its js lol
Seve
Seve2w ago
yea worth investigating if it breaks CI fwiw
shibo
shiboOP2w ago
@Seve why does everything appear to be failing but it says they all passed?
shibo
shiboOP2w ago
No description
shibo
shiboOP2w ago
can you please run and check on your machine?
Seve
Seve2w ago
hmm maybe check what CI says? is the issue just that the text is red?
shibo
shiboOP2w ago
ok above that it says 32 failed
No description
shibo
shiboOP2w ago
I'll investigate further
Seve
Seve2w ago
yea that could be quite serious- the best thing to check is what CI says for the logs i haven't thought about playwright tests in a while 😬
DOPΣ
DOPΣ2w ago
do playwright tests worth it?
Seve
Seve2w ago
it's usually good to have a "smoke test" to make sure that a major user flow isn't broken
shibo
shiboOP2w ago
looks like they aren't running on ci
Seve
Seve2w ago
e.g. signing up, going to the editor page and hitting run
shibo
shiboOP2w ago
prob been broken for a while
Seve
Seve2w ago
welp yea i think there were some bad ones in there that are old and flaky
shibo
shiboOP2w ago
it was driving me mad lol
Seve
Seve2w ago
haha yea it sucks
shibo
shiboOP2w ago
I thought it was an issue on my machine, I guess it's a win since now I have more experience with what to debug first comparing what works(supposedly) with what doesn't

Did you find this page helpful?