Skip to content

Commit

Permalink
test: code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 28, 2020
1 parent dc33b30 commit b7beaca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ async function getDependencies(
? path.dirname(filename)
: path.join(path.dirname(filename), globTask.base);

// eslint-disable-next-line no-console
console.log(nodePath);
// eslint-disable-next-line no-console
console.log(globTask);
// eslint-disable-next-line no-console
console.log(context);

loaderContext.addContextDependency(context);
}

Expand Down
5 changes: 4 additions & 1 deletion test/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ describe('loader', () => {
expect(getErrors(stats)).toMatchSnapshot('errors');
});

it('imports files listed in glob with deps', async () => {
it.only('imports files listed in glob with deps', async () => {
const testId = './import-glob.styl';
const compiler = getCompiler(testId);
const stats = await compile(compiler);
Expand All @@ -814,6 +814,9 @@ describe('loader', () => {

const { fileDependencies, contextDependencies } = stats.compilation;

// eslint-disable-next-line no-console
console.log(contextDependencies);

validateDependencies(fileDependencies);
validateDependencies(contextDependencies);

Expand Down

0 comments on commit b7beaca

Please sign in to comment.