chore(react): fix e2e test that checks for vendor sourcemap (#4109)

- No longer check "sourceMappingURL" in content, but check existence of 'vendor.js.map' in dist
This commit is contained in:
Jack Hsu 2020-11-18 10:37:05 -05:00 committed by GitHub
parent 96c3b2effc
commit b73636a419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,9 +65,7 @@ describe('React Applications', () => {
}); });
runCLI(`build ${appName}`); runCLI(`build ${appName}`);
vendorContent = readFile(`dist/apps/${appName}/vendor.js`); checkFilesExist(`dist/apps/${appName}/vendor.js.map`);
expect(vendorContent).toMatch(/sourceMappingURL/);
}, 120000); }, 120000);
it('should be able to generate a publishable react lib', async () => { it('should be able to generate a publishable react lib', async () => {