Automate NPM package releases (#1119)
This commit is contained in:
@@ -8,7 +8,7 @@ import * as typescript from 'rollup-plugin-typescript2';
|
||||
import * as assert from 'assert';
|
||||
import { waitForRAF } from './utils';
|
||||
|
||||
const _typescript = (typescript as unknown) as () => rollup.Plugin;
|
||||
const _typescript = typescript as unknown as () => rollup.Plugin;
|
||||
|
||||
const htmlFolder = path.join(__dirname, 'html');
|
||||
const htmls = fs.readdirSync(htmlFolder).map((filePath) => {
|
||||
@@ -129,7 +129,8 @@ describe('integration tests', function (this: ISuite) {
|
||||
});
|
||||
}
|
||||
await waitForRAF(page);
|
||||
const rebuildHtml = ((await page.evaluate(`${code}
|
||||
const rebuildHtml = (
|
||||
(await page.evaluate(`${code}
|
||||
const x = new XMLSerializer();
|
||||
const snap = rrweb.snapshot(document);
|
||||
let out = x.serializeToString(rrweb.rebuild(snap, { doc: document }));
|
||||
@@ -138,7 +139,8 @@ describe('integration tests', function (this: ISuite) {
|
||||
out = out.replace(' xmlns=\"http://www.w3.org/1999/xhtml\"', '');
|
||||
}
|
||||
out; // return
|
||||
`)) as string)
|
||||
`)) as string
|
||||
)
|
||||
.replace(/\n\n/g, '')
|
||||
.replace(
|
||||
/blob:http:\/\/localhost:\d+\/[0-9a-z\-]+/,
|
||||
|
||||
Reference in New Issue
Block a user