Here is the important log output of failing test which only occurs with autopkgtests =>
Processing triggers for ca-certificates (20211016) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. (Reading database ... 42293 files and directories currently installed.) Removing autopkgtest-satdep (0) ...autopkgtest [04:32:18]: test pkg-js-autopkgtest: /usr/share/pkg-js-autopkgtest/runner
autopkgtest [04:32:18]: test pkg-js-autopkgtest: [----------------------- # Using ./package.(json|yaml) # Node module name is react-audio-player # Build files found: .babelrc tsconfig.json # Test files found: test # Files/dir to be installed from source: test .babelrc tsconfig.json # Copy test files # Copy debian/tests/pkg-js content'debian/tests/pkg-js' -> '/tmp/autopkgtest.YEcA3e/autopkgtest_tmp/smokeIo3saa/debian/tests/pkg-js' 'debian/tests/pkg-js/test' -> '/tmp/autopkgtest.YEcA3e/autopkgtest_tmp/smokeIo3saa/debian/tests/pkg-js/test'
Found debian/build_modules # let's copy it Found debian/nodejs/extlinks '@babel/parser' linked into node_modules '@babel/types' linked into node_modules 'babel-loader' linked into node_modules '@types/istanbul-lib-coverage' linked into node_modules '@types/prop-types' linked into node_modules '@types/scheduler' linked into node_modules Found debian/nodejs/extcopiescp -rL /usr/share/nodejs/@types/istanbul-lib-report /tmp/autopkgtest.YEcA3e/autopkgtest_tmp/smokeIo3saa/node_modules/@types cp -rL /usr/share/nodejs/@types/react /tmp/autopkgtest.YEcA3e/autopkgtest_tmp/smokeIo3saa/node_modules/@types
# Searching module in /usr/lib/nodejs/react-audio-player # Searching module in /usr/lib/*/nodejs/react-audio-player # Searching module in /usr/share/nodejs/react-audio-player # Found /usr/share/nodejs/react-audio-player # Searching files to link in /usr/share/nodejs/react-audio-player './dist' -> '/usr/share/nodejs/react-audio-player/dist' './package.json' -> '/usr/share/nodejs/react-audio-player/package.json' './src' -> '/usr/share/nodejs/react-audio-player/src' # Launch debian/tests/pkg-js/test with sh -ex + jest FAIL test/index.test.js ● Test suite failed to run Jest encountered an unexpected tokenJest 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:SyntaxError: /usr/share/nodejs/react-audio-player/src/index.tsx: Unexpected reserved word 'interface'. (4:0)
2 | import PropTypes from 'prop-types'; 3 | > 4 | interface ReactAudioPlayerProps { | ^ 5 | autoPlay?: boolean 6 | children?: ReactNode 7 | className?: stringat Parser._raise (../../../../usr/share/nodejs/@babel/parser/src/parser/error.js:150:45) at Parser.raiseWithData (../../../../usr/share/nodejs/@babel/parser/src/parser/error.js:145:17) at Parser.raise (../../../../usr/share/nodejs/@babel/parser/src/parser/error.js:89:17) at Parser.checkReservedWord (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:2722:12) at Parser.parseIdentifierName (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:2657:12) at Parser.parseIdentifier (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:2625:23) at Parser.parseExprAtom (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:1256:27) at Parser.parseExprSubscripts (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:682:23) at Parser.parseUpdate (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:662:21) at Parser.parseMaybeUnary (../../../../usr/share/nodejs/@babel/parser/src/parser/expression.js:633:23)
Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 10.147 s Ran all test suites. autopkgtest [04:32:40]: test pkg-js-autopkgtest: -----------------------]autopkgtest [04:32:40]: test pkg-js-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
pkg-js-autopkgtest FAIL non-zero exit status 1 autopkgtest [04:32:40]: @@@@@@@@@@@@@@@@@@@@ summary pkg-js-autopkgtest-require PASS (superficial) pkg-js-autopkgtest FAIL non-zero exit status 1 Pls assistance is needed to help me debug and find solution. Thanks
OpenPGP_0x1FF1115A4CAC464D.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel