# ava-preact-init **Repository Path**: mirrors_avajs/ava-preact-init ## Basic Information - **Project Name**: ava-preact-init - **Description**: Set up AVA for Preact - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ava-preact-init [![Build Status](https://travis-ci.org/avajs/ava-preact-init.svg?branch=master)](https://travis-ci.org/avajs/ava-preact-init) > Set up AVA with [Preact](https://github.com/developit/preact) This utility configures AVA to transform JSX with pragma required for Preact (`h`) and adds support for importing project files using Babel with existing configuration. It also installs AVA, in case it's missing. ## Install ``` $ npm install --save ava-preact-init ``` ## Usage ```js const avaPreactInit = require('ava-preact-init'); avaPreactInit().then(() => { // done }); ``` ## API ### avaPreactInit([options]) Returns a `Promise`. #### options #### cwd Type: `string`
Default: `'.'` Current working directory. ## CLI Install this module globally `$ npm install --global ava-preact-init` and run `$ ava-preact-init`. ## License MIT © [Vadim Demedes](https://github.com/vadimdemedes)