sindresorhus on main
Minor tweaks (compare)
sindresorhus on master
sindresorhus on main
sindresorhus on master
Move to GitHub Actions (#16) (compare)
SyntaxError: Unexpected token export
which only occurs when I require "babel-register"
sourcemap
and ava
, but haven't found anything to fix the issue.
For example, I use FileHound that allows to do that. For example, here is a sample from my code that find all the media files (thanks @sindresorhus ) in a directory
const videosExtension = require('video-extensions');
....
const foundFiles = FileHound.create()
.paths((this.paths.length === 0) ? this.defaultPath : this.paths)
.ext(videosExtension)
.find();
The notable disavantage is that this stuff uses a sync way to search ...
As Gitter's development seems to have slowed since their acquisition by GitLab we're moving our chat to Spectrum. It's a new product so still rough around the edges, but it's way more than a chat room which we think will be quite useful for the AVA community.
Come join us at spectrum.chat/ava!
SyntaxError: Unexpected token import
errors. "ava": {
"files": [
// ...
],
"require": [
"@babel/register",
"@babel/polyfill"
],
"babel": {
"testOptions": {
"babelrc": false,
"presets": [
"@babel/preset-stage-2",
"@babel/preset-react"
]
}
}
},
no tests found
is caused by an uncaught exception. Something seems to be wrong with the imports. A simple file as this is causing the issue:import { GraphQLError } from 'graphql';
class CustomError extends GraphQLError {
constructor(message, errors = []) {
super(message);
}
}
The real error here is somehow in the graphql
package. When I extend a custom class class BaseError { constructor() {} }
than all seems to be fine.
So, I'm getting closer, but not really understanding what's happening :confused: