Skip to content

Commit

Permalink
tests ~ required updates for new 'dist' targeting
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Dec 28, 2020
1 parent 0c7c6c7 commit e1c858a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions eg/show-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
/* eslint-env es6, node */
'use strict';

const pkg = require('../' + 'package.json');
// const pkg = require('../' + 'package.json');

const osPaths = require('../' + pkg.main);
// const osPaths = require('../' + pkg.main);

const osPaths = require('../build/cjs/index.js');

console.log({ osPaths });

Expand Down
2 changes: 1 addition & 1 deletion eg/show-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-env es6, node */
'use strict';

import osPaths from '../src/lib';
import osPaths from '../src';

console.log({ osPaths });

Expand Down
2 changes: 1 addition & 1 deletion test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require('path');
const test = require('ava');
const spawn = require('cross-spawn');

const module_ = require('../build/umd');
const module_ = require('../build/cjs+tests');

// Integration tests

Expand Down
2 changes: 1 addition & 1 deletion test/unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const os = require('os');

const test = require('ava');

const osPaths = require('../build/umd');
const osPaths = require('../build/cjs+tests');

test('default', (t) => {
const paths = osPaths;
Expand Down

0 comments on commit e1c858a

Please sign in to comment.