UNPKG

jsconfig-paths-jest-mapper

Version:

Use this to load modules whose location is specified in the `paths` section of `jsconfig.json` when using jest.

15 lines (10 loc) 335 B
const { expect } = require('chai'); const PathsMapper = require('../index'); const { mapper } = require('./fixtures'); const config = require('../jsconfig'); describe('Paths plugin', () => { const pathsMapper = new PathsMapper(); it('should create mapper', () => { expect(pathsMapper).to.deep.equal(mapper); }); });