Two new #JEST MIRI images of (a part of) Cas A supernova remnants were published, here I display them over a previous image in red
Wondering if there's any #jest #devs out here who have tactics for reducing CI test run times?
I have an E2E test suite that takes 24-30mins across all shards and since it's E2E I can't really run the ones tied to commit changes using static analysis since the files under test aren't directly imported in the suite.
I'm considering using coverage stats to figure out which tests to run for a given commit but curious about prior art 🤔 🎨 ❓
So did anyone ever used #vscode managed by #homemanager in a non-nixos?
I'm having trouble to run #jest extension because it can't find my PATH
The project I get paid to work on takes > ten minutes to install, build, and test from a fresh repo. That's not hyperbole. It's just two #websites built with #typescript #nextJS #yarn #nixOS and #jest. There aren't even any #e2e functional #tests!
Ten fucking minutes everytime I switch branches!!
#transpiling #webdev #strugglestack #tests #e2e #jest #nixos #yarn #nextjs #typescript #websites
anyone got experience closing a db connection after all Jest tests using Knex? Nothing I'm trying works, it just hangs unless I use forceExit which I'd rather not
#dev #jest #javaScript
テストCI実行時間を半分にした話
https://qiita.com/shippokun/items/2a4be572e6185e4f1d60?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#Jest #GitHubActions
Getting stuck on a #jest testing error after hours of work updating dependencies:
"Cannot redefine property: window"
My emotional response at this point is just "how dare you defy me"
I love having proper unit tests (using #Jest in my scenario), they give me so much confidence when it comes to specification changes to the component's logic.
I don't even need to spawn the whole server to test it out, I know it will work.
Added #e2e tests to Tram-Lite, using #cypress 🎉
In the past, I've usually leaned on #jest and #TestingLibrary but even for this super simple library, Cypress was easy, incredibly fast, and better reflects the actual behavior of the browser.
I understand for libraries it feels like unit-tests should be the go to, but over time I've realized that e2e forces you to put your library in real scenarios, rather than fake / idealized scenarios that might not happen.
#e2e #cypress #jest #testinglibrary #tramlite #webdev #testing
A few people have asked when #Angular is moving forward with #Jest and whether or not we considered #Vitest as an alternative.
So I wrote up a fairly in-depth discussion about some of our thinking around the the current web testing ecosystem and why we opted for Jest over Vitest for the time being.
https://github.com/angular/angular-cli/issues/25217#issuecomment-1581581005
Bon, #àLaide.
J’essaye d’intégrer à mes #tests unitaires le bon démarrage de mon serveur #Node.
J’utilise #Jest.
Le fichier racine est dans ./src/modules/server.js.
Jest l’exécute bien, mais il s’obstine à chercher mes vues dans ./views alors qu’elles sont dans ./src/views.
Le serveur une fois lancé, lui, n’a aucun problème avec ce dossier.
Comment je peux dire à Jest que le processus doit être lancé depuis ./src, et que les chemins sont relatifs à ça ?
:retootPlz:
Do you have any tips on writing unit tests? How does one get better at making unit tests? or testing in general? seems like such a pain in the caboose I am using #jest at the moment should I just learn the framework more? trying to mock everything seems to take me an eternity sometimes.
#jest #testing #webdevelopment
@chowderman
Learning about how upset this possibility makes certain individuals,
should not upset an #omnist Nor is the calling of names for anything
other than a #jest encouraged. (though it does happen)
#Angular CLI 16 introduces experimental first-class #Jest support with the @angular-devkit/build-angular:jest builder https://blog.angular.io/moving-angular-cli-to-jest-and-web-test-runner-ef85ef69ceca
#Angular v16 launched today!
This is a feature-PACKED release including:
🚦 Signals in developer preview.
➡️ Required inputs.
💧 Non-destructive hydration in developer preview.
🧍♀️ Standalone APIs for #Universal and improved schematics.
🛠️ Faster builds with #ESBuild and #Vite in developer preview.
🃏 Experimental #Jest support.
🅰️ ... and way more!
Check out our blog post for all the deets.
#angular #universal #esbuild #vite #jest
I made a tool which converts text to javascript Jest tests: https://text2jest.com What do you think? #jest #javascript #testing
https://dev.to/darkmavis1980/how-to-mock-environmental-variables-with-jest-2j3c - set env vars for #Jest tests:
```
// jest.config.js
module.exports = {
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
...
}
```
Great quick tip https://github.com/darkmavis1980.
https://dev.to/ddoice/fix-slow-tests-with-jest-in-github-actions-5h00 - specify the number of CPUs to use in #Jest tests: `npm run test -- --maxWorkers=2` Great performance gain if you don't need the machine to do other things like support a UI desktop. Nice find https://github.com/ddoice.