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:
hm...
so...
given i have 2 test files with 2 tests in each...
and each test contains async function with implementation
and this implementation is synchronous code, like 3 serial actions
when executing with ava
then there will be two process created for each test file
and instide each process two tests will be triggered concurrently
BUT real actions from both tests among same file will not be executed concurrently. First node will execute one series for 3 actions from one test, then another series of 3 actions from another test from the same file...
AND in parallel - the same will happen concurrently for another test file...
right? :)
I am actually considering using ava for browser tests, based on selenium webdriver.
All my tests, including tests in the same file are independent. Each test in the same file will open it's own browser and execute a series of actions in it. Then close the browser in the end. So I want to run these concurrently. The problem I have with current test runner is that I can parallelize only files, not tests in the same file. All code from the tests in the same file will be executed sequentially...
question is whether with AVA it will be the same...