Skip to content
Avatar
🎧
Rockin' Out
🎧
Rockin' Out

Highlights

  • Arctic Code Vault Contributor

Organizations

@nestjs

Pinned

  1. A Single Page Application to help zeldaPlay players to track their characters and progress

    TypeScript 59 7

  2. 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!

    TypeScript 363 40

  3. A monorepo for the ogma logger and related packages

    TypeScript 32 5

  4. A NestJS Module for generating a NestJS Applications Module Dependency Graph.

    TypeScript 21 1

  5. 1
    I've run into trouble in the past with testing observables, so I figured I would make myself a gist to help myself remember, and to help others who find it.
    2
    
                  
    3
    Observables are rather tricky to test in general as they are made to be asynchronous and act like a stream, and up until recently it was acceptable to pass a `next`, `error`, and `complete` callback function, but now that method is bieng deprecated in favor of `Observers`. Fear not! An `Observer` is just like the three callbacks rolled into a signle object, plus other fields you would like to add :).
    4
    
                  
    5
    Say that we have the following Observable
  6. 1
    I've always had trouble using the given `node -r tsconfig-paths/register path/to/main` function from the command line, my paths never import correctly and I always seem to have an error when running after a build. After doing a bunch of digging around through packages and StackOverflow Q&A's I finally found a way to use `tsconfig-paths` programatically. 
    2
    
                  
    3
    The `tsconfig-bootstrap.js` file makes use of `tsconfig-paths`to register the paths from the compiler, and more than likely does exactly what `tsconfig-paths/register` is supposed to do. After requiring your tsconfig file you can access your baseUrl and paths via the JSON scheme of the config file to 100% programatically set your path imports to be correct, so that is anything changes in your config file this function doesn't need any chagning!
    4
    
                  
    5
    After you have the function set up, jsut add the following segment to your npm start command (whatever you have it called) and watch as your server fires up seamlessly:

792 contributions in the last year

Sep Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Mon Wed Fri
Activity overview
Contributed to jmcdo29/ogma, jmcdo29/zeldaPlay, jmcdo29/testing-nestjs and 5 other repositories
Loading

Contribution activity

September 2020

Created a pull request in jmcdo29/ogma that received 4 comments

docs(all): adds docs for the request scoped service

The service now allowing for request scoping and the interceptor no longer being added by default, it's important to keep these changes well docume…

+31 −2 4 comments

Created an issue in skuid/skuid-sfdx that received 3 comments

Cannot push pages that have comments

If a page is pulled from a Salesforce organization and it has single line comments in JavaScript (using //), then when the page gets serialized to …

3 comments

Seeing something unexpected? Take a look at the GitHub profile guide.

You can’t perform that action at this time.