This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flutter (FVM) | |
FLUTTER_HOME="$HOME/fvm/versions/3.10.1/bin" | |
export PATH=$PATH:$FLUTTER_HOME/bin | |
# Android SDK | |
export ANDROID_HOME=$HOME/Android/Sdk | |
# Android Tools | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/platform-tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schemaVersion": 1, | |
"label": "Hello", | |
"message": "World", | |
"color": "orange" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('throws error if class-validator return error', async () => { | |
mockfs({ | |
'test_dir/assets': { | |
'sales_sample.txt': mockfs.file({ | |
content: | |
'2022-01-15T19:20:30-03:00CURSO DE BEM-ESTAR 0000012750JOSE CARLOS\n12021-12-03T11:46:02-03:00DOMINANDO INVESTIMENTOS 0000050000MARIA CANDIDA', | |
}), | |
}, | |
}); | |
const file = fs.readFileSync('test_dir/assets/sales_sample.txt'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as request from 'supertest'; | |
import { Test } from '@nestjs/testing'; | |
import { INestApplication } from '@nestjs/common'; | |
import { DataSource } from 'typeorm'; | |
import { setupDatabase } from '../setup-database'; | |
import { AppModule } from '../../src/app.module'; | |
import { TransactionRepository } from '../../src/transactions/repository/transactions.repository'; | |
describe('TransactionController (e2e)', () => { | |
let app: INestApplication; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { newDb } from 'pg-mem'; | |
export const setupDatabase = async () => { | |
const db = newDb(); | |
db.public.registerFunction({ | |
implementation: () => 'test', | |
name: 'current_database', | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dart.flutterSdkPath": ".fvm/flutter_sdk", | |
// Remove .fvm files from search | |
"search.exclude": { | |
"**/.fvm": true | |
}, | |
// Remove from file watching | |
"files.watcherExclude": { | |
"**/.fvm": true | |
} |