fuse-test-runner

TODO:

ISC 17 个版本
安装
npm install fuse-test-runner
yarn add fuse-test-runner
pnpm add fuse-test-runner
bun add fuse-test-runner
README

Introduction

TODO:

Wallaby.js

In order to make fuse test work in wallaby.js you need to transform them to the representation that wallaby understands. For this purpose you need to use the wallabyFuseTestLoader in wallaby.js config. Here is an example of wallaby config for typescript files:

const transform = require("fuse-test-runner").wallabyFuseTestLoader;
const path = require('path');

module.exports = function (wallaby) {
  // var load = require;

  return {
    files: [
      "src/**/*.ts*",
      "!src/**/*.test.tsx",
      "!src/**/*.test.ts",
      "!src/**/*.d.ts*"
    ],
    tests: [
      "src/**/*.test.tsx",
      "src/**/*.test.ts",
      "src/**/snapshots/*.json",
    ],
    compilers: {
      '**/*.ts?(x)': wallaby.compilers.typeScript({ jsx: 'react', module: 'commonjs' })
    },
    preprocessors: {
      "**/*.ts": file => transform(file.content),
      "**/*.tsx": file => transform(file.content) 
    },
    env: {
      type: "node"
    },
    testFramework: "mocha"
  };
};
版本列表
1.0.16 2017-11-07
1.0.15 2017-10-12
1.0.14-beta 2017-08-17
1.0.14 2017-09-03
1.0.13 2017-05-07
1.0.12 2017-03-24
1.0.11 2017-03-24
1.0.10 2017-03-16
1.0.9 2017-03-16
1.0.8 2017-03-07
1.0.7 2017-03-07
1.0.6 2017-03-03
1.0.5 2017-03-02
1.0.4 2017-02-25
1.0.3 2017-02-25
1.0.2 2017-02-24
1.0.1 2017-02-24