Skip to content

Function specification idea #11

@roman01la

Description

@roman01la

I can think of an AST transform that could instrument functions. Here's some ideas:

  • Define specs in separate files/modules (with .spec extension, similar to .d.ts in TypeScript)
  • Find a way to map spec modules to JS modules
    • /* @spec path/to/spec.spec */ in JS files?
    • import from "path/to/spec.spec";
  • Match specs with function by name?
  • Use Webpack loader and Babel AST transform to load specs and instrument JS code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions