Created
January 2, 2021 15:07
-
-
Save RobertBrunhage/01140a201b7ee5697fd45ee0d4a1ebb7 to your computer and use it in GitHub Desktop.
These snippets I have gotten from FilledStacks so make sure to follow him!
This file contains 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
Show hidden characters
{ | |
"Main Test Suite Setup": { | |
"prefix": "testm", | |
"body": [ | |
"import 'package:flutter_test/flutter_test.dart';", | |
"", | |
"void main() {", | |
" group('${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} -', (){", | |
"", | |
" });", | |
"}" | |
], | |
"description": "Main Test Suite Setup" | |
}, | |
"Test Group Setup": { | |
"prefix": "testg", | |
"description": "Creates a Test group with a test", | |
"body": [ | |
"group('${1} -', () {", | |
" test('${2}', () {", | |
"", | |
" });", | |
"});", | |
] | |
}, | |
"Single Test Setup": { | |
"prefix": "tests", | |
"description": "Creates a single test", | |
"body": [ | |
" test('${1}', () {", | |
"", | |
" });", | |
] | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment