Top 23 TypeScript Testing Projects
Headless Chrome Node.js APIProject mention: Running Puppeteer under Docker | dev.to | 2022-01-14
If you haven’t heard of Puppeteer, it’s basically a NodeJS library that allows you to run (and control) an instance of headless chrome. i.e - an instance of Google chrome without a UI. In this project, I was using it to render PDF exports of reports. Running natively, it worked like a charm. But under docker, well…I’m writing this article after all, aren’t I?
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!Project mention: 9 Ways You Can Use React Today in 2022 | dev.to | 2022-01-21
There is also Storybook, a great react library for building user interface components and pages in isolation. The cool part about this approach is that its also naturally great at generating documentations if you have multiple components to document:
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
I've determined through some reading that this is caused by babel-polyfill or regenerator-runtime not being applied correctly to Jest. However, I've tried installing both of those packages and re-running with no change in results. After reading the Jest Github issues page (Remove auto-inclusion of babel-polyfill #2755), I found out that babel-polyfill is not included automatically by Jest as of version 19. My manual installation of that package should have fixed the issue, but it did not. I've included some of the files that I think are relevant
Sandbox for developing and testing UI components in isolationProject mention: React Cosmos with Remix | dev.to | 2021-12-09
Enter https://reactcosmos.org. It's an alternative to Storybook and to me looks a bit cleaner with smaller amount of boilerplate needed to get running out of the box. It runs a separate dev server with a clean UI displaying all of your component fixtures.
Next-gen browser and mobile automation test framework for Node.jsProject mention: Browserstack vs WebDriverVersion conflict | reddit.com/r/selenium | 2021-12-15
Can you use a breakpoint to see why chromeversion isn't being set? This may be an easier implementation with BS: https://webdriver.io/
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.Project mention: Running Jest for Typescript CLI - unexpected token at import | reddit.com/r/typescript | 2022-01-22
Anyway, I ran into this exact error this morning setting up Jest for a TS script. I fixed it by just following the getting started instructions for Jest as well as ts-jest.
But Cucumber is well-known for its native support for Behavior Driven Development (BDD).
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
🐏 Simple and complete React hooks testing utilities that encourage good testing practices.Project mention: I’ve been struggling a lot learning Unit Testing, any general tip? | reddit.com/r/reactjs | 2022-01-07
As for hooks, there's https://react-hooks-testing-library.com/
A monorepo of common components - building blocks for implementing Cucumber in various languages.
A payment application to demonstrate real-world usage of Cypress testing methods, patterns, and workflows.Project mention: Setting up a cypress automation framework inside an application project | reddit.com/r/softwaretesting | 2022-01-20
I'll be giving an online meetup demo using the Cypress Real World App in March. It's a fantastic repo for understanding how things work in a project.
🐺 Create browser tests 10x fasterProject mention: Test receiving an email in 2 minutes | dev.to | 2021-02-25
View on GitHub
Automation for Kubernetes development and testing. Spin up production-like environments for development, testing, and CI on demand. Use the same configuration and workflows at every step of the process. Speed up your builds and test runs via shared result caching.Project mention: Top 200 Kubernetes Tools for DevOps Engineer Like You | dev.to | 2022-01-15
This extension is now maintained in the Microsoft fork.Project mention: Attention! As of today, updating the VS Code Python extension automatically installs proprietary software on your computer! | reddit.com/r/linux | 2021-05-11
But I mean, this doesn't prevent you from writing an open source extension that runs regardless of which version a user chooses to use, right? Users who are using the open source version of VS Code aren't forced to install the proprietary version with PyLance. The old extension is open source and even had a release just 18 hours ago - https://github.com/Microsoft/vscode-python
A powerful, feature-rich, random test data generator.Project mention: Ask HN: How often do you create fake data sets? | news.ycombinator.com | 2021-11-03
> If it were easier to do the thing I want, I'd do it all the time. What I want is to be able to point to either a database with empty tables or an SQL file and fill in the tables correctly with bogus data while respecting all the constraints. I have not found a tool that does that.
I was thinking more of a virtual CSV file that you can query like a SQL table.
This is exactly the type of thing I was looking for, I will check them out. I do worry that each use case is too specific for a tool like this.
Thanks for the help.
Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).Project mention: How to write tests for applications that use MongoDB as a storage | dev.to | 2021-10-03
The final method tries to combine both methods, 1 and 2. It uses an external package MongoDB In-Memory Server for our MongoDB.
🦊 🚀 A Powerful Tool to Simplify Your Angular TestsProject mention: 7 Costly Mistakes That One Needs to Avoid in Angular Test Automation | reddit.com/r/Angular2 | 2021-10-15
I've had huge success using spectator https://github.com/ngneat/spectator
I just tried running WinDirStat on the `node_modules` folder in a Create-React-App project I had lying around. Total size was 234 MB. Of that, 129MB was JS files. By far the biggest piece was TypeScript, which has 45MB of .js in 6 files making up its parsing and IDE language service implementation.
Beyond that, the breakdown is:
- .ts source files: 25MB
- Sourcemaps: 23MB
- Markdown: 15MB
- JSON: 10MB
It also looks like there's a 12MB Linux binary that was only in there as a publishing accident for the `user-event` library that has since been resolved ( https://github.com/testing-library/user-event/issues/266 ).
Or, take Redux Toolkit, which I maintain. If you look at https://unpkg.com/browse/@reduxjs/[email protected]/ , the published package for our current version, it adds up to about 10MB on disk. But, that's because we ship three separate entry points (RTK core, RTK Query UI-agnostic core, RTK Query with React-specific additions), and for each entry point we compile the code to multiple file formats (CommonJS, ESM legacy, ESM modern, ESM with "dev" and "prod" already built in, UMD dev, UMD production), and each of those has sourcemaps. The actual amount of code that ends up in your bundle is about 20KB min+gz.
So, it's a combination of many things: TS itself is big, libraries typically publish packages containing both the original source code plus multiple build artifacts to run in different environments, and packages also include various metadata and other files as well.
A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!Project mention: What do you want to know GRAPHQL + NESTJS ? | reddit.com/r/Nestjs_framework | 2022-01-13
Question: for your e2e tests will you be using something like supertestto send the gql request? And if so, could I suggest you look at pactum which (in my opinion) has a stronger API and better gql support. I've got an example here if you need it
Codemods for migrating to Jest https://github.com/facebook/jest 👾Project mention: What UI testing framework do you use and what do you like/dislike about it? | reddit.com/r/Angular2 | 2021-04-29
jest-codemods helped us a lot moving from Jasmine to Jest, removes most of the manual work
Mocking library for TypeScriptProject mention: The Repository pattern with Typescript | dev.to | 2021-02-15
There's a very cool library called ts-mockito, it works very well when you use dependency injection in your code (as we're doing now). It allows you to create mocks, stub function calls, and many other cool features, definitely check it out! I'm going to use it to test our AuthRepository.
TestContainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.Project mention: Tricking PostgreSQL into using an insane – but 200x faster – query plan | reddit.com/r/programming | 2022-01-18
The Test Containers project is pretty great for this, and I've personally had success with the stock postgres image and the testcontainers-node library.
TypeScript Testing related posts
Running Jest for Typescript CLI - unexpected token at import
1 project | reddit.com/r/typescript | 22 Jan 2022
`regeneratorRuntime` is not defined when running Jest test
1 project | reddit.com/r/codehunter | 22 Jan 2022
Setting up a cypress automation framework inside an application project
1 project | reddit.com/r/softwaretesting | 20 Jan 2022
Tricking PostgreSQL into using an insane – but 200x faster – query plan
4 projects | reddit.com/r/programming | 18 Jan 2022
An overview of software testing
1 project | dev.to | 18 Jan 2022
Production Ready React
3 projects | dev.to | 18 Jan 2022
Testing Jest Problem: Cannot mock and unmock in the same file
1 project | reddit.com/r/node | 15 Jan 2022
What are some of the best open-source Testing projects in TypeScript? This list will help you:
Are you hiring? Post a new remote job listing for free.