module.exports = {
    preset: "ts-jest",
    testEnvironment: "node",
    moduleNameMapper: {
        "^(admin|site|charts|utils|db|settings)/(.*)$": "<rootDir>/$1/$2",
        "^settings$": "<rootDir>/settings",
        "^serverSettings$": "<rootDir>/serverSettings"
    },
    setupFilesAfterEnv: ['<rootDir>/test/enzymeSetup.ts']
}

module.exports = {
    preset: "ts-jest",
    testEnvironment: "jsdom",
    moduleNameMapper: {
        "^(admin|site|charts|utils|db|settings)/(.*)$": "<rootDir>/$1/$2",
        "^settings$": "<rootDir>/settings",
        "^serverSettings$": "<rootDir>/serverSettings"
    },
    setupFilesAfterEnv: ['<rootDir>/test/enzymeSetup.ts']
}

Switch jest environment to `jsdom`
Switch jest environment to `jsdom`

Probably more appropriate? Found this is `node` when an error was thrown because `window` doesn't exist.
