Wallaby.js, an AI-ready test runner with instant feedback.

Ramu NarasingaRamu Narasinga
2 min read

In this article, we will review Wallaby.js, an AI-ready test runner with instant feedback. We will look at:

  1. Wallaby.js usage in Flyde.

  2. What is Flyde?

  3. What is Wallaby.js?

Wallaby.js usage in Flyde

I found the following code at flyde/core/wallaby.js.

module.exports = function (w) {
  const path = require("path");
  process.env.NODE_PATH += path.delimiter + path.join(w.localProjectDir, "../", "node_modules");
  return {
    files: [
      "src/**/*.ts",
      "src/**/*.tsx",
      { pattern: "src/**/spec.ts", ignore: true },
      { pattern: "src/**/spec.tsx", ignore: true },
    ],

    tests: ["src/**/spec.ts", "src/**/spec.tsx"],
    env: {
      type: "node",
    },
    setup: () => {
      // setup code here
    },
  };
};

This seems to be a configuration file for Wallaby.js

What is Flyde?

Flyde is an open-source visual programming for backend logic that integrates with existing codebases. Flyde bridges the gap between technical and non-technical team members. Product managers, designers, and backend developers can collaborate on the same visual flows.

Learn more about Flyde.dev.

What is Wallaby.js?

Wallaby.js runs your JavaScript and TypeScript tests as you type, with results displayed next to your code. It also feeds rich runtime context to AI tools to help you write and fix code faster.

Why Wallaby?

  1. In-editor smart debugging

  2. Real-time test feedback

  3. Ready for AI

  4. No lock-in, full control

Learn more about Wallaby.js

About me:

Hey, my name is Ramu Narasinga. I study codebase architecture in large open-source projects.

Email: ramu.narasinga@gmail.com

Want to learn from open-source? Solve challenges inspired by open-source projects.

References:

  1. https://github.com/flydelabs/flyde/blob/main/core/wallaby.js

  2. https://wallabyjs.com/

  3. https://flyde.dev/

0
Subscribe to my newsletter

Read articles from Ramu Narasinga directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ramu Narasinga
Ramu Narasinga

I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.