summaryrefslogtreecommitdiff
path: root/date-fns/scripts/test/dst.sh
blob: 5e645b9f049d8e4cc38c87be5cca1208e9cabff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# The script runs the DST tests.
#
# It's a part of the test process.

set -ex

export PATH="$(yarn bin):$PATH"
export NODE_ENV=test

env TZ=America/Sao_Paulo babel-node --extensions .ts,.js ./test/dst/parseISO/basic.js
env TZ=Australia/Sydney babel-node --extensions .ts,.js ./test/dst/parseISO/sydney.js
env TZ=Pacific/Apia babel-node --extensions .ts,.js ./test/dst/parseISO/samoa.js
env TZ=Asia/Damascus babel-node --extensions .ts,.js ./test/dst/eachDayOfInterval/basic.js
env TZ=America/Santiago babel-node --extensions .ts,.js ./test/dst/addBusinessDays/basic.js
env TZ=Australia/Melbourne ts-node ./test/dst/formatDistanceStrict/melbourne.ts
env TZ=Africa/Cairo ts-node ./test/dst/formatDistanceStrict/cairo.ts