All Projects â†’ Thinkmill â†’ jest-fixtures

Thinkmill / jest-fixtures

Licence: MIT license
Use file system fixtures in Jest

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jest-fixtures

fixturez
Easily create and maintain test fixtures in the file system
Stars: ✭ 57 (+46.15%)
Mutual labels:  fixtures, test
mockingbird
ðŸĶ Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (+79.49%)
Mutual labels:  fixtures, test
Foundry
A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
Stars: ✭ 216 (+453.85%)
Mutual labels:  fixtures, test
unittest expander
A library that provides flexible and easy-to-use tools to parameterize Python unit tests, especially those based on unittest.TestCase.
Stars: ✭ 12 (-69.23%)
Mutual labels:  test
eaf-linter
ðŸĪŠ A linter, prettier, and test suite that does everything as-simple-as-possible.
Stars: ✭ 17 (-56.41%)
Mutual labels:  test
AndcultureCode.Cli
and-cli command-line tool to manage the development of software applications
Stars: ✭ 14 (-64.1%)
Mutual labels:  test
jest-it-up
🌐📈 Automatically bump up global Jest thresholds whenever coverage goes above them
Stars: ✭ 37 (-5.13%)
Mutual labels:  test
CombineExpectations
Utilities for tests that wait for Combine publishers
Stars: ✭ 204 (+423.08%)
Mutual labels:  test
jest-github-action
Jest action adding checks with annotations to your pull requests and coverage table as comments
Stars: ✭ 134 (+243.59%)
Mutual labels:  test
Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✭ 22 (-43.59%)
Mutual labels:  test
speed-cloudflare-cli
📈 Measure the speed and consistency of your internet connection using speed.cloudflare.com
Stars: ✭ 99 (+153.85%)
Mutual labels:  test
cxx-tap
Test Anything Protocol (TAP) Producer for C++
Stars: ✭ 22 (-43.59%)
Mutual labels:  test
revl
Helps to benchmark code for Autodesk Maya.
Stars: ✭ 14 (-64.1%)
Mutual labels:  test
kit-assignment-tests
Test collection for KIT programming assignments (WS16/17)
Stars: ✭ 18 (-53.85%)
Mutual labels:  test
got
An enjoyable golang test framework.
Stars: ✭ 234 (+500%)
Mutual labels:  test
IO-TESTER
A functional test framework
Stars: ✭ 32 (-17.95%)
Mutual labels:  test
generator-react-jest-tests
A React Jest test generator. Generates snapshot tests for React components.
Stars: ✭ 34 (-12.82%)
Mutual labels:  test
postchildren-desktop
ðŸ‘Ļ‍ðŸ‘Ķ‍ðŸ‘Ķ A E2E test visualization tool (get along with postman and postwoman)
Stars: ✭ 23 (-41.03%)
Mutual labels:  test
CI-Report-Converter
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
Stars: ✭ 17 (-56.41%)
Mutual labels:  test
dts-jest
A preprocessor for Jest to snapshot test TypeScript declaration (.d.ts) files
Stars: ✭ 102 (+161.54%)
Mutual labels:  test

jest-fixtures

[WIP]

Installation

yarn add --dev jest-fixtures

API

getFixturePath(cwd, ...fileParts)
import {getFixturePath} from 'jest-fixtures';

test('example', async () => {
  let fixturePath = await getFixturePath(__dirname, 'fixture-name');
  let fixtureFilePath = await getFixturePath(__dirname, 'fixture-name', 'file.txt');
  // ...
});
getFixturePathSync(cwd, ...fileParts)
import {getFixturePathSync} from 'jest-fixtures';

test('example', () => {
  let fixturePath = getFixturePathSync(__dirname, 'fixture-name');
  let fixtureFilePath = getFixturePathSync(__dirname, 'fixture-name', 'file.txt');
  // ...
});
createTempDir()
import {createTempDir} from 'jest-fixtures';

test('example', async () => {
  let tempDirPath = await createTempDir();
  // ...
});
createTempDirSync()
import {createTempDirSync} from 'jest-fixtures';

test('example', () => {
  let tempDirPath = createTempDirSync();
  // ...
});
copyDir()
import {copyDir} from 'jest-fixtures';

test('example', async () => {
  await copyDir('/path/to/source/dir', '/path/to/dest/dir');
  // ...
});
copyDirIntoTempDir()
import {copyDirIntoTempDir} from 'jest-fixtures';

test('example', async () => {
  let tempDir = await copyDirIntoTempDir('/path/to/source/dir');
  // ...
});
copyFixtureIntoTempDir()
import {copyFixtureIntoTempDir} from 'jest-fixtures';

test('example', async () => {
  let tempDir = await copyFixtureIntoTempDir(__dirname, 'fixture-name');
  // ...
});
cleanupTempDirs()

Deletes every temporary directory created by jest-fixtures. This is called automatically when the Jest process exits.

import {createTempDir, cleanupTempDirs} from 'jest-fixtures';

test('example', async () => {
  await createTempDir();
  await createTempDir();
  cleanupTempDirs();
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].