Here's an example of how to debug Mocha v4 if it hangs.
Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).
If you run your test, you'll notice it hangs:
$ mocha test.js
open System | |
open System.Diagnostics | |
open System.Globalization | |
let inline flip f x y = f y x | |
let parseLine(input:string) = | |
let trimmed = input.Trim() | |
if String.IsNullOrWhiteSpace trimmed || (trimmed.Contains("\t") |> not) then | |
Array.create 0 "" |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
/** | |
* This is the iterator, becusae it implements the iterator protocol | |
* Iterator protocol requires an object that implements next() with certain semantics | |
*/ | |
class Chain { | |
constructor(iterable) { | |
this.iterator = Chain.getIterator(iterable); | |
} | |
next() { |
docker run --rm --volumes-from postgres_container -v C:\deletethis\postgres\:/backup ubuntu tar cvf /backup/backup.tar /var/lib/postgresql/data | |
One way to persist data is to use a custom volume | |
https://stackoverflow.com/questions/41637505/how-to-persist-data-in-a-dockerized-postgres-database-using-volumes | |
``` | |
docker volume create pgdata | |
docker run -p 5432:5432 -v pgdata:/var/lib/postgresql/data --name postgres_container --network postgres-docker_postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password --volumes-from=data-container postgres |
Here's an example of how to debug Mocha v4 if it hangs.
Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).
If you run your test, you'll notice it hangs:
$ mocha test.js
This is an example of a function whose logic lives in the type definition rather than in the function body.
/**
* @name `curryRecord`
*
* Takes a unary function that takes a record as an argument, and makes the
* record partially applicable. Returns a new function that takes a partial of