- Install:
- jest:
npm install --save-dev jest - ts-jest:
npm install --save-dev ts-jest @types/jest
- Modify package.json
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
| // Do not edit directly | |
| // Generated on Tue, 15 Nov 2022 10:24:01 GMT | |
| $pbm-red: rgb(191, 34, 71); | |
| $base-dark: rgb(28, 28, 40); | |
| $base-light: rgb(242, 242, 245); | |
| $primary-10: rgb(59, 157, 164); | |
| $primary-20: rgb(98, 177, 182); | |
| $primary-30: rgb(137, 196, 200); |
| Vue.component('comments', { | |
| props: ['img'], | |
| data: function () { | |
| return { | |
| comment: '', | |
| username: '', | |
| comments: [], | |
| }; | |
| }, | |
| mounted: function () { |
| /* | |
| When a countdown instance is created, it should emit a secondElapsed event every second until it gets to zero, | |
| passing the current number of seconds remaining to any listeners that have been added | |
| */ | |
| const events = require("events"); | |
| module.exports = class Countdown extends events.EventEmitter { | |
| constructor(num) { | |
| super(); |
| { | |
| "defaultConnection": "default", | |
| "connections": { | |
| "default": { | |
| "connector": "mongoose", | |
| "settings": { | |
| "uri": "${process.env.DATABASE_URI}", | |
| "database": "${process.env.DATABASE_NAME}" | |
| }, | |
| "options": { |
| { | |
| "defaultConnection": "default", | |
| "connections": { | |
| "default": { | |
| "connector": "mongoose", | |
| "settings": { | |
| "uri": "mongodb://<user>:<passwd>@goal-tracker-shard-00-00-f72do.mongodb.net:27017,goal-tracker-shard-00-01-f72do.mongodb.net:27017,goal-tracker-shard-00-02-f72do.mongodb.net:27017/test?ssl=true&replicaSet=Goal-Tracker-shard-0&authSource=admin&retryWrites=true&w=majority" | |
| }, | |
| "options": { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| /* Get Programming with JavaScript |
| #!/bin/bash | |
| # Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
| if [ "$(whoami)" != "root" ]; then | |
| echo "Run script as ROOT please. (sudo !!)" | |
| exit | |
| fi | |
| echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
| echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |