Skip to content

The agent that grows with you

test(build): seed assets/ input before the junk-write assertion (#122632)

PRATHAMESH75d436e79baeb8
diff --git a/tests-js/product-builders.test.mjs b/tests-js/product-builders.test.mjs
index 7fb47f4f646..de0e41ceeea 100644
--- a/tests-js/product-builders.test.mjs
+++ b/tests-js/product-builders.test.mjs
@@ -233,6 +233,7 @@ test('built web freshness follows shared sources and build inputs, not mtimes or
put(icons, 'web/public/favicon.ico', 'icon')
put(source, 'apps/shared/src/client.ts', 'export const version = 1')
put(source, 'scripts/build/web.mjs', '// build input')
+ put(source, 'assets/logo.svg', '<svg></svg>')
await buildWeb({ source, icons, out })
expect(productCurrent({ source, product: 'web', out })).toBe(true)
put(source, 'web/node_modules/.tmp/tsbuildinfo', 'generated')