This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Minimal mocking | |
*/ | |
// `global` is available in both node and browser environment | |
/* | |
global.fetch = () => | |
Promise.resolve({ | |
json: () => Promise.resolve({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Core import | |
import highlightjs from 'highlight.js/lib/highlight' | |
// Languages import | |
import javascript from 'highlight.js/lib/languages/javascript' | |
import bash from 'highlight.js/lib/languages/bash' | |
import yaml from 'highlight.js/lib/languages/yaml' | |
// Register languages | |
highlightjs.registerLanguage('javascript', javascript) |