Skip to content

Commit

Permalink
fix: rm rem test into index
Browse files Browse the repository at this point in the history
  • Loading branch information
clChenLiang committed Nov 17, 2023
1 parent a7cfcff commit 3a302ee
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 34 deletions.
31 changes: 31 additions & 0 deletions tests/integration/app-document/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,35 @@ describe('test dev and build', () => {
expect(errors.length).toEqual(0);
});
});

describe('fix rem', () => {
beforeAll(async () => {
console.log(
'\n===> test rem dev beforeAll: start ',
new Date().getTime(),
);
console.log(
'===> rem sequence ins: ',
curSequenceWait.sequenceResolveList.keys(),
);
await curSequenceWait.waitUntil('test-rem');
console.log(
'\n===> test rem dev beforeAll waitUntil: ',
new Date().getTime(),
);
// printFileTogether(path.join(__dirname, '../node_modules/.modern-js'));
await modernBuild(appDir, ['-c', 'modern-rem.config.ts']);
// printFileTogether(path.join(__dirname, '../node_modules/.modern-js'));
});

test('should add rem resource correct', async () => {
console.log('\n===> test rem 1', new Date().getTime());
// printFileTogether(path.join(__dirname, '../node_modules/.modern-js'));
const htmlNoDoc = fs.readFileSync(
path.join(appDir, 'dist-1', 'html/test/index.html'),
'utf-8',
);
expect(htmlNoDoc.includes('/static/js/convert-rem.'));
});
});
});
34 changes: 0 additions & 34 deletions tests/integration/app-document/tests/rem.test.ts

This file was deleted.

0 comments on commit 3a302ee

Please sign in to comment.