VandyHacks/vaken

View on GitHub
__mocks__/snapshotResolver.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable */
const path = require('path');
module.exports = {
    /** resolves from test to snapshot path */
    resolveSnapshotPath: (testPath, snapshotExtension) => {
        return testPath.replace('src', '__snapshots__') + snapshotExtension;
    },
    /** resolves from snapshot to test path */
    resolveTestPath: (snapshotFilePath, snapshotExtension) => {
        return snapshotFilePath.replace('__snapshots__', 'src').slice(0, -snapshotExtension.length);
    },
    testPathForConsistencyCheck: 'src/client/example/example.test.js',
};