Skip to content

Commit

Permalink
fix: remove unstable test case
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed May 17, 2024
1 parent d745b8e commit 3af0c1e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/integration/source-code-build/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ describe('source build', () => {
codeDir: string;
original: string;
};
let utils: {
codeDir: string;
original: string;
};

beforeEach(async () => {
port = await getPort();
Expand Down Expand Up @@ -67,23 +63,6 @@ describe('source build', () => {
await fs.writeFile(card.codeDir, card.original);
});

test('update utils project code', async () => {
const newContent = `
export const strAdd = (str1: string, str2: string) => {
return 'this is utils' + str1 + str2;
}
`;
await fs.writeFile(utils.codeDir, newContent);
await sleep(2000);
const page = await browser.newPage();
await page.goto(`http://localhost:${port}`);
const root = await page.$('#root');
const targetText = await page.evaluate(el => el?.textContent, root);
expect(targetText).toMatch('this is utils');

await fs.writeFile(utils.codeDir, utils.original);
});

afterEach(async () => {
browser.close();
await killApp(app);
Expand Down

0 comments on commit 3af0c1e

Please sign in to comment.