https://github.com/userfrosting/ts-log-adapter-ava
Plug ava test logging into ts-log compatible logging interfaces.
https://github.com/userfrosting/ts-log-adapter-ava
Last synced: about 1 year ago
JSON representation
Plug ava test logging into ts-log compatible logging interfaces.
- Host: GitHub
- URL: https://github.com/userfrosting/ts-log-adapter-ava
- Owner: userfrosting
- License: mit
- Created: 2020-08-10T22:41:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T10:29:43.000Z (about 1 year ago)
- Last Synced: 2025-04-12T13:09:26.713Z (about 1 year ago)
- Language: TypeScript
- Size: 2.41 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# [ts-log](https://github.com/kallaspriit/ts-log)-adapter-ava
| Branch | Status |
| ------ | ------ |
| master | [](https://github.com/userfrosting/ts-log-adapter-ava/actions?query=branch:master+workflow:"Continuous+Integration") [](https://codecov.io/gh/userfrosting/ts-log-adapter-ava/branch/master) |
An adapter for the ts-log interface that pushes logging to ava.
## Install
```bash
npm i @userfrosting/ts-log-adapter-ava
```
## Usage
```js
import test from "ava";
import { logAdapter } from "@userfrosting/ts-log-adapter-ava";
import main from "./main.js";
test("example", t => {
const result = main(logAdapter(t.log));
t.true(result);
});
```
## API
API documentation is regenerated for every release using [API Extractor](https://www.npmjs.com/package/@microsoft/api-extractor) and [API Documenter](https://www.npmjs.com/package/@microsoft/api-documenter).
The results reside in [docs/api](./docs/api/index.md).
## Release process
Generally speaking, all releases should first traverse through `alpha`, `beta`, and `rc` (release candidate) to catch missed bugs and gather feedback as appropriate. Aside from this however, there are a few steps that **MUST** always be done.
1. Make sure [`CHANGELOG.md`](./CHANGELOG.md) is up to date.
2. Update version via `npm` like `npm version 3.0.0` or `npm version patch`.
3. `npm publish`.
4. Create release on GitHub from tag made by `npm version`.
## License
[MIT](LICENSE)