Skip to content

Commit

Permalink
Merge pull request #68 from M365Bass/dependabot/npm_and_yarn/prettier…
Browse files Browse the repository at this point in the history
…-3.1.0

Bump prettier from 3.0.3 to 3.1.0
  • Loading branch information
BassemNKhalil authored Nov 13, 2023
2 parents c3dfbb6 + 2f98076 commit 67d8d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 67d8d26

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/opt/hostedtoolcache/node/18.18.2/x64/bin/npx' failed with exit code 1
St.
Category Percentage Covered / Total
🔴 Statements 36.45% 39/107
🔴 Branches 0% 0/10
🟡 Functions 75% 9/12
🔴 Lines 36.45% 39/107

Test suite run failed

Failed tests: 11/11. Failed suites: 11/11.
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Commands/fastServe.test.js:2:15)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/appendToJSONFile.test.js:2:15)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Commands/gitInit.test.js:2:15)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/replaceInFile.js:2:15)
      at Object.<anonymous> (Utils/replaceInFile.test.js:1:53)


  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/executeCommand.js:3:15)
      at Object.<anonymous> (Utils/executeCommand.test.js:1:55)


  ● prettier: parentWP & componentWP files changed

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/executeCommand.js:3:15)
      at Object.require (Utils/prettifyPath.js:1:28)
      at Object.require [as runPrettier] (Commands/runPrettier.js:3:30)
      at Object.runPrettier (Tests/e2e/prettier.test.js:28:22)


  ● sortPackage: Package.json file changed

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/replaceInFile.js:2:15)
      at Object.require [as sortPackage] (Commands/sortPackage.js:3:31)
      at Object.sortPackage (Tests/e2e/sortPackage.test.js:11:22)

  ● sortPackage: dependencies in Package.json file sorted

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/replaceInFile.js:2:15)
      at Object.require [as sortPackage] (Commands/sortPackage.js:3:31)
      at Object.sortPackage (Tests/e2e/sortPackage.test.js:11:22)

  ● sortPackage: postinstall script added

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/replaceInFile.js:2:15)
      at Object.require [as sortPackage] (Commands/sortPackage.js:3:31)
      at Object.sortPackage (Tests/e2e/sortPackage.test.js:11:22)


  ● npmVersion: version-sync gulp task added

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Utils/replaceInFile.js:2:15)
      at Object.require [as npmVersion] (Commands/npmVersion.js:7:31)
      at Object.npmVersion (Tests/e2e/npmVersion.test.js:9:21)


  ● fastServe: fast-serve folder created

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require [as fastServe] (Commands/fastServe.js:6:19)
      at Object.fastServe (Tests/e2e/fastServe.test.js:7:20)


  ● gitInit: .git folder created

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import ansiStyles from '#ansi-styles';
                                                                                      ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
      at Object.require (Utils/chalk.js:3:15)
      at Object.require (Commands/gitInit.js:5:19)
      at Object.gitInit (Tests/e2e/gitInit.test.js:7:18)


  ● indexTest: fast-serve folder created

    Command failed: spfx-jack -v -f -g -s -p
    /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js:3
    const chalk = require("chalk");
                  ^

    Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js from /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js not supported.
    Instead change the require of index.js in /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js to a dynamic import() which is available in all CommonJS modules.

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Object.<anonymous> (Utils/chalk.js:3:15)
      at Object.<anonymous> (index.js:8:15) {
        code: 'ERR_REQUIRE_ESM'
      }
      Node.js v18.18.2
      at Object.execSync (Tests/e2e/index.test.js:26:3)

  ● npmVersion: version-sync gulp task added

    Command failed: spfx-jack -v -f -g -s -p
    /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js:3
    const chalk = require("chalk");
                  ^

    Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js from /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js not supported.
    Instead change the require of index.js in /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js to a dynamic import() which is available in all CommonJS modules.

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Object.<anonymous> (Utils/chalk.js:3:15)
      at Object.<anonymous> (index.js:8:15) {
        code: 'ERR_REQUIRE_ESM'
      }
      Node.js v18.18.2
      at Object.execSync (Tests/e2e/index.test.js:26:3)

  ● gitInit: .git folder created

    Command failed: spfx-jack -v -f -g -s -p
    /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js:3
    const chalk = require("chalk");
                  ^

    Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js from /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js not supported.
    Instead change the require of index.js in /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js to a dynamic import() which is available in all CommonJS modules.

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Object.<anonymous> (Utils/chalk.js:3:15)
      at Object.<anonymous> (index.js:8:15) {
        code: 'ERR_REQUIRE_ESM'
      }
      Node.js v18.18.2
      at Object.execSync (Tests/e2e/index.test.js:26:3)

  ● sortPackage: postinstall script added

    Command failed: spfx-jack -v -f -g -s -p
    /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js:3
    const chalk = require("chalk");
                  ^

    Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/spfx-jack/spfx-jack/node_modules/chalk/source/index.js from /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js not supported.
    Instead change the require of index.js in /home/runner/work/spfx-jack/spfx-jack/Utils/chalk.js to a dynamic import() which is available in all CommonJS modules.

      1 | /* istanbul ignore file */
      2 |
    > 3 | const chalk = require("chalk");
        |               ^
      4 |
      5 | exports.Message = function (message) {
      6 |   if (!runningJest()) console.log(chalk.blue(message));

      at Object.<anonymous> (Utils/chalk.js:3:15)
      at Object.<anonymous> (index.js:8:15) {
        code: 'ERR_REQUIRE_ESM'
      }
      Node.js v18.18.2
      at Object.execSync (Tests/e2e/index.test.js:26:3)

Report generated by 🧪jest coverage report action from 67d8d26

Please sign in to comment.