Skip to content

Instantly share code, notes, and snippets.

@Windrill
Windrill / loginloop.md
Last active June 17, 2020 12:56
Linux packages, dependencies and graphics drivers

Login Loop:

  • Analysis: something must have failed to start, figure out what journalctl -b on a shell (ctrl-alt-f3 or f2 or f1 from user login screen)
  • To temporarily refrain from touching display drivers nomodeset can be tried (boot screen click e, after quiet splash on the line starting with linux) (another option: nouveau.modeset=0)
  • Display managers(?): gdm3 (configured underneath: X11, lightdm, sddm), nouveau
    • switching may help but probably won't if it is not trivial (don't even try twice)
    • xauthority files only matter when you use a specific display manager...
  • Kernels that give trouble: nvidia kernels & drivers
  • If you didn't find the solution to your problem, make your google search phrase more specific
@Windrill
Windrill / setupJest.txt
Created January 22, 2023 21:30
How to setup Jest with TypeScript
1. npm install Jest
- This command is the Jest package
2. npm install ts-jest
- This enables jest with TypeScript annotations
3. npm i --save-dev @types/jest
- Use with step 4
4. Addd "@types/jest" to your tsconfig.json:
{ "compilerOptions": { "types": [""@types/jest"] } }
- This fixes your 'test' and 'expect' not found errors
5. Create some files named xxx.test.ts anywhere in your project. Usually these files will be auto-detected by jest for testing without needing to configure a jest config file.