Merge pull request #2046 from MartinFournier/fix/tests

Fix jest unit tests & add a github action workflow to build, test & lint
This commit is contained in:
hydroflame
2021-12-19 22:35:25 -05:00
committed by GitHub
18 changed files with 550 additions and 435 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ let currentScript = {} as openScript; // Script currently being viewed
export function Root(props: IProps): React.ReactElement {
const editorRef = useRef<IStandaloneCodeEditor | null>(null);
const monacoRef = useRef<Monaco | null>(null);
const [filename, setFilename] = useState(props.filename);
const [code, setCode] = useState<string>(props.code);
const [filename] = useState(props.filename);
const [code] = useState<string>(props.code);
const [decorations, setDecorations] = useState<string[]>([]);
const [ram, setRAM] = useState("RAM: ???");
const [updatingRam, setUpdatingRam] = useState(false);