Skip to content

Commit

Permalink
fix: remove auto-highlighting SSR-rendered HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Mar 5, 2019
1 parent ed1e17c commit caaec8c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion jest-environment-puppeteer-basichtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class BasicHTMLEnvironment extends NodeEnvironment {

window.customElements = new CustomElementRegistry();
window.document = new Document(window.customElements);
window.document = new Document(window.customElements);
window.HTMLElement = HTMLElement;
window.HTMLUnknownElement = HTMLUnknownElement;
window.Node = Node;
Expand Down
1 change: 0 additions & 1 deletion jest-global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = async function globalSetup() {
const config = await getConfig();
await buildPrep(); // Generate folders, manifest data, etc needed for Twig renderer
await imageTasks.processImages(); // process image fixtures used by any tests
await teardown(); // close down any still-open testing servers before spinning up a new one

await setupDevServer({
command: `node server/testing-server`,
Expand Down
7 changes: 1 addition & 6 deletions server/ssr-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ getConfig().then(async boltConfig => {
parser: 'html',
});

console.log(
highlight.highlight(renderedHTML, {
language: 'html',
ignoreIllegals: true,
}),
);
console.log(renderedHTML);

await shutDownSSRServer();
});
Expand Down

0 comments on commit caaec8c

Please sign in to comment.