Skip to content

Quick and dirty implementation of a webpack-enabled AVA-runner

Notifications You must be signed in to change notification settings

dkaledin/ava-webpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ava-webpack

Crude webpack enabled runner for AVA

Installation

npm install ava-webpack --save-dev

Usage example (almost as crude as the implementation - sorry)

webpack.config-test.js (using ts-loader)

'use strict';

module.exports = {
    resolve: {
        extensions: ['.ts', '.tsx', '.js'],
        alias: {}
    },
    module: {
        loaders: [
            {
                test: /\.tsx?$/,
                loader: 'ts-loader'
            }
        ]
    }
};

package.json

{
	"devDependencies": {
		"@types/enzyme": "^2.4.30",
		"ava": "^0.19.1",
		"ava-webpack": "^1.0.6",
		"ts-loader": "2.0.3",
		"enzyme": "^2.4.1",
		"rimraf": "^2.5.3",
		"typescript": "2.3.2",
		"webpack": "2.4.1"
	},
	"scripts": {
		"ava-test": "ava-webpack --webpack-config ./webpack.config-test.js"
	},
    "ava": "^0.19.1"
}

About

Quick and dirty implementation of a webpack-enabled AVA-runner

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%