---
title: "Daniel (@chiubaka) | Hashnode"
description: "Daniel (@chiubaka) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@chiubaka"
---

@chiubaka

# Daniel

@chiubaka · Joined July 2022

### [Writing Shared Scripts for CircleCI Orbs](https://blog.chiubaka.com/writing-shared-scripts-for-circleci-orbs?utm_source=hashnode&utm_medium=feed)

Problem CircleCI Orbs provide an include directive that can be used to include scripts in an orb's command configurations. Unfortunately, this directive doesn't provide an obvious way of referencing other, shared scripts from within the included scri...

4 min read · [blog.chiubaka.com](https://blog.chiubaka.com/writing-shared-scripts-for-circleci-orbs?utm_source=hashnode&utm_medium=feed)

[Aug 10, 2022](https://hashnode.com/posts/writing-shared-scripts-for-circleci-orbs/62f33d1f408d676b1b58bc5e)

### [Faithful E2E Testing of Nx Preset Generators](https://blog.chiubaka.com/faithful-e2e-testing-of-nx-preset-generators?utm_source=hashnode&utm_medium=feed)

TLDR: Here's a full working example of a faithful E2E test for an Nx preset generator since the default generated E2E harness isn't correct. Putting it all together, here's a full sample test suite: import { checkFilesExist, cleanup, runNxComma...

11 min read · [blog.chiubaka.com](https://blog.chiubaka.com/faithful-e2e-testing-of-nx-preset-generators?utm_source=hashnode&utm_medium=feed)

[Aug 2, 2022](https://hashnode.com/posts/faithful-e2e-testing-of-nx-preset-generators/62e9a9a492b7fd0a78c34659)

### [Writing Tests for Custom Matchers in Jest](https://blog.chiubaka.com/writing-tests-for-custom-matchers-in-jest?utm_source=hashnode&utm_medium=feed)

TLDR: Here's an example of how to write a test for a custom matcher: describe("toHaveDevDependency", () => { it("fails when given a number", () => { expect(() => { expect(2).toHaveDevDependency("node"); }).toThrow("Expected 2 to be a ...

4 min read · [blog.chiubaka.com](https://blog.chiubaka.com/writing-tests-for-custom-matchers-in-jest?utm_source=hashnode&utm_medium=feed)

[Jul 7, 2022](https://hashnode.com/posts/writing-tests-for-custom-matchers-in-jest/62e859c7430bd1d04a8484ab)

### [Integrating Sentry with NestJS scheduled jobs](https://blog.chiubaka.com/integrating-sentry-with-nestjs-scheduled-jobs?utm_source=hashnode&utm_medium=feed)

After integrating @ntegral/nestjs-sentry in my NestJS project, I was surprised to find errors in my logs that weren't being reported to Sentry. After a bit of investigation, I found that NestJS' native concepts of Interceptors and ExceptionFilters ar...

3 min read · [blog.chiubaka.com](https://blog.chiubaka.com/integrating-sentry-with-nestjs-scheduled-jobs?utm_source=hashnode&utm_medium=feed)

[May 7, 2021](https://hashnode.com/posts/integrating-sentry-with-nestjs-scheduled-jobs/62e859cb430bd1d04a8484ae)
