1.0.16 • Published 7 years ago

fuse-test-runner v1.0.16

Weekly downloads
276
License
ISC
Repository
github
Last release
7 years ago

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

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.14-beta

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago