'use strict'; const fs=require('fs'); const path=require('path'); const assert=require('assert/strict'); const {root,functionSource}=require('./helpers/app-source'); const app=fs.readFileSync(path.join(root,'app.js'),'utf8'); const server=fs.readFileSync(path.join(root,'server.js'),'utf8'); const realtime=fs.readFileSync(path.join(root,'realtime-server.js'),'utf8'); const html=fs.readFileSync(path.join(root,'index.html'),'utf8'); const css=fs.readFileSync(path.join(root,'style.css'),'utf8'); const pkg=JSON.parse(fs.readFileSync(path.join(root,'package.json'),'utf8')); assert(html.includes('name==='playwright-core'),'Phase 2 added an unnecessary runtime dependency'); console.log('Shared-world phase 2 source guards passed');