Skip to content

Commit

Permalink
feat(dependenices): define dependency details in the modern format
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Feb 21, 2025
1 parent bef02d0 commit 6ee4287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function ({projectRoot}) {

return {
testFilenamePattern: 'src/**/*.test.js',
devDependencies: ['jest', 'jest-when'],
dependencies: {javascript: {development: ['jest', 'jest-when']}},
scripts: {'test:unit:base': 'DEBUG=any jest --testPathPattern=src/.*\\.test\\.js$'},
eslintConfigs,
eslint: {configs: eslintConfigs},
Expand Down
4 changes: 2 additions & 2 deletions src/scaffolder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {fileURLToPath} from 'node:url';

import any from '@travi/any';
import {when} from 'jest-when';
import {jest} from '@jest/globals';
import {beforeEach, describe, expect, it, jest} from '@jest/globals';

const __dirname = dirname(fileURLToPath(import.meta.url)); // eslint-disable-line no-underscore-dangle

Expand Down Expand Up @@ -36,7 +36,7 @@ describe('scaffolder', () => {
);
expect(results).toEqual({
testFilenamePattern: 'src/**/*.test.js',
devDependencies: ['jest', 'jest-when'],
dependencies: {javascript: {development: ['jest', 'jest-when']}},
scripts: {'test:unit:base': 'DEBUG=any jest --testPathPattern=src/.*\\.test\\.js$'},
eslintConfigs,
eslint: {configs: eslintConfigs},
Expand Down

0 comments on commit 6ee4287

Please sign in to comment.