Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rollup for bundling dependencies #242

Merged
merged 16 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix failing test from common-tags update
tommy-mitchell committed Aug 15, 2023
commit 93d281be12564dc1cfc33e40009454e7bcad9933
7 changes: 7 additions & 0 deletions test/_utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'node:path';
import {fileURLToPath} from 'node:url';
import {execa} from 'execa';
import {createTag, stripIndentTransformer, trimResultTransformer} from 'common-tags';

export const __dirname = path.dirname(fileURLToPath(import.meta.url));

@@ -15,3 +16,9 @@ export const spawnFixture = async (fixture = 'fixture.js', args = []) => {

return execa(getFixture(fixture), args);
};

// Use old behavior prior to zspecza/common-tags#165
export const stripIndent = createTag(
stripIndentTransformer(),
trimResultTransformer(),
);
2 changes: 1 addition & 1 deletion test/choices.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {stripIndent} from 'common-tags';
import meow from '../source/index.js';
import {stripIndent} from './_utils.js';

const importMeta = import.meta;

2 changes: 1 addition & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {stripIndent} from 'common-tags';
import meow from '../source/index.js';
import {stripIndent} from './_utils.js';

const importMeta = import.meta;