Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement playwright for browser compatibility testing #1182

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
6345f20
feat: implement playwright for browser based testing with jest
Aug 10, 2023
71bded7
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 11, 2023
8ee0391
feat: regen lock file
Aug 11, 2023
18dc128
feat: implement multiple jest configs for different environments
Aug 14, 2023
7a6b27a
feat: use jest test pattern for runner groups
Aug 15, 2023
cb4fe09
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 15, 2023
fe8c134
chore: regen lock file
Aug 15, 2023
61faf71
feat: remove runner groups syntax from test
Aug 15, 2023
4336c89
feat: implement all tests config
Aug 15, 2023
ef31bd7
chore: install nyc
Aug 15, 2023
e25d874
chore: add nyc config
Aug 15, 2023
3c93e24
chore: remove duplicate group tsdoc key
Aug 15, 2023
92cffa8
chore: changeset
Aug 15, 2023
c2aeab0
feat: implement merged coverage
Aug 15, 2023
0baf51e
feat: move more config to jest base config
Aug 16, 2023
2f5e7e8
feat: move js config to json for nyc
Aug 16, 2023
2e37b32
feat: implement constants for test envs
Aug 16, 2023
0c04a3d
feat: support nyc converage in test workflow
Aug 16, 2023
1d6e27e
feat: add missign coverage json rename
Aug 16, 2023
8cc44d8
chore: linting
Aug 16, 2023
8905f73
Aug 16, 2023
94fa353
feat: fix jest env pattern matches
Aug 16, 2023
c6b965e
feat: add browser test env to docs snippets
Aug 16, 2023
f9d5705
chore: linting
Aug 16, 2023
938815d
feat: remove usage of env tags in test declarations
Aug 16, 2023
f1cbac1
feat: use regex on file path for env test matching rather than test case
Aug 16, 2023
80149fa
feat: rename abi coder tests
Aug 16, 2023
a1fc53f
feat: rename fuel gauge packages
Aug 16, 2023
062b413
feat: add environemnt testing to abi typegen package
Aug 16, 2023
34f78dc
chore: linting
Aug 16, 2023
bcbca1a
feat: add environment tests to various packages
Aug 16, 2023
2800dc2
feat: rename more tests for environments
Aug 16, 2023
27d7665
feat: add further environment prefixes to tests
Aug 16, 2023
3c14af5
feat: add further environment prefixes to tests
Aug 16, 2023
676387f
feat: reimplement tx param in custom transaction test
Aug 16, 2023
46e3631
feat: rename further test files
Aug 16, 2023
a771b8a
feat: add github action to validate test files
Aug 16, 2023
41aeefc
feat: add pretest to ci test script
Aug 17, 2023
c3e6785
chore: force rebuild
Aug 17, 2023
9728aec
feat: alter test scripts
Aug 17, 2023
87d6c0f
fix: reintroduce unintentionally deleted file
Aug 17, 2023
460ddc5
fix: reintroduce unintentionally deleted file
Aug 17, 2023
15709dc
fix: fix crypto file indexes
Aug 17, 2023
9f094a1
chore: force rebuild
Aug 17, 2023
56de71d
chore: force rebuild
Aug 17, 2023
e1aee2f
feat: modify ci script
Aug 17, 2023
0fcb6d5
chore: forece rebuild
Aug 17, 2023
0cc3533
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 17, 2023
87c93af
feat: modify ci test script to run env tests independently
Aug 17, 2023
c26e596
feat: add coverage to ci test script
Aug 17, 2023
0349500
feat: fix gh coverage workflow
Aug 17, 2023
8506134
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 17, 2023
9847868
feat: add envs to wallet manager tests
Aug 17, 2023
a8e7ef8
feat: fix links in md files for wallet manager tests
Aug 17, 2023
ee18efe
feat: gh workflow coverage report call
Aug 17, 2023
bae9f56
feat: revert master coverage report name
Aug 17, 2023
f60c13d
feat: fix master upload file name
Aug 17, 2023
3e53b22
feat: add conditional test step to gh workflow
Aug 17, 2023
d18a30c
fix: fix gh action ref name
Aug 17, 2023
97b5a89
fix: fix gh action
Aug 17, 2023
f06b281
feat: test gh action workflow
Aug 17, 2023
cf91864
feat: retry action
Aug 17, 2023
545d814
feat: alterations to gh test script
Aug 18, 2023
0d221ae
feat: try test gh flow without coverage file
Aug 18, 2023
c15331d
feat: gh workflow alter
Aug 18, 2023
b99083c
feat: try different version of atriom coverage report
Aug 18, 2023
f26bfc2
feat: add test location in results flags to coverage reports
Aug 18, 2023
6150cad
feat: implement coverage threshhold
Aug 18, 2023
2cee062
feat: lower testing threshhold
Aug 18, 2023
ab56804
feat: finalise test coverage merging and reporting
Aug 21, 2023
6ad92d9
feat: fixes for the merge coverage script
Aug 21, 2023
e2b9a2d
feat: alter github action to support nyc
Aug 21, 2023
5c9c385
feat: add github token to nyc action
Aug 21, 2023
5e46cf6
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 21, 2023
e122ee2
feat: add coverage template
Aug 21, 2023
179a749
feat: add pretest to ci test script
Aug 21, 2023
7953c74
feat: add source to comment template
Aug 21, 2023
d1bbf7e
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 22, 2023
86ee9f4
feat: resolve pretest issue
Aug 22, 2023
ff31395
feat: attempt CI without base coverage
Aug 22, 2023
0fd0022
feat: alter git checkout fetch depth
Aug 22, 2023
8c17cf2
feat: add fetch base branch to test workflow
Aug 22, 2023
f99e7e5
feat: add base coverage file
Aug 22, 2023
8fa679b
feat: alter gh workflow fetch depth
Aug 22, 2023
8507a35
feat: alter fetch depth on origin in gh test workflow
Aug 22, 2023
f93a2b4
feat: alter base coverage file
Aug 22, 2023
69c39c9
feat: report lcov in report
Aug 22, 2023
7a4acf8
feat: add json reporting to nyc
Aug 22, 2023
da304f3
feat: use base lcov in coverage report
Aug 22, 2023
bdc20b6
feat: use diff version of cov reporter
Aug 22, 2023
3fb237d
feat: fix report action attributes
Aug 22, 2023
ac12192
feat: alter report coverage action to not filter files
Aug 22, 2023
ad89d3c
feat: alter master coverage artefact
Aug 22, 2023
abfe478
feat: download coverage using pr number
Aug 22, 2023
fadb558
feat: get coverage via run id
Aug 22, 2023
de620b1
feat: add temp gh workflow steps for this PR
Aug 22, 2023
affdac9
feat: fix temp gh action
Aug 22, 2023
9f02d6d
feat: fix github action conditional syntax
Aug 22, 2023
4ec815d
chore: testing cleanup
Aug 22, 2023
3b0f404
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 22, 2023
ff0f9da
feat: alter fuel error test file names
Aug 22, 2023
d43e422
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 23, 2023
d07fbee
feat: add missing validate test step to test CI
Aug 23, 2023
a86e75a
feat: remove byte coder test
Aug 23, 2023
4a4bda6
feat: add vecs test env
Aug 23, 2023
15eb7ec
Update scripts/merge-coverage.ts
danielbate Aug 23, 2023
04015c3
Update scripts/merge-coverage.ts
danielbate Aug 23, 2023
376beb0
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 23, 2023
f4ddc02
feat: rename test files with duplicated envs
Aug 23, 2023
8a1984a
Merge branch 'db/feat/implement-browser-testing-with-runner-groups' o…
Aug 23, 2023
11ae5df
feat: swap jest playwright ts config for js
Aug 24, 2023
8cca525
feat: modify test commands
Aug 24, 2023
f3b2e58
feat: remove test file path from node and browser test commands
Aug 24, 2023
eb6b2a4
feat: disable jest playwright collect coverage
Aug 24, 2023
5d6d903
feat: test concurrent test worlfows
Aug 24, 2023
be8fee0
feat: rename node test stage
Aug 24, 2023
f2dc574
feat: add concurrent test and report steps
Aug 24, 2023
5ccce0a
feat: fix workflow name in coverage download
Aug 24, 2023
9eb562e
feat: reinstate test yaml
Aug 24, 2023
e3511f4
feat: rename workflow in download coverage step
Aug 24, 2023
ea1378b
feat: rename workflow run triggers in test yaml
Aug 24, 2023
73d7972
chore: implement find/grep script for test files (#1209)
arboleya Aug 25, 2023
9d225e8
feat: introduce tests to check browser environment
Aug 25, 2023
58b0fc4
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 25, 2023
3b4d446
feat: add browser type to browser test
Aug 25, 2023
d93385e
feat: add sequential test commands
Aug 25, 2023
9a68691
feat: rename coverage commands
Aug 25, 2023
8fc6eb3
feat: add test groups to docs snips contracts
Aug 25, 2023
1bdf65c
feat: install expect-playwright
Aug 25, 2023
50a1231
feat: modify env tests
Aug 25, 2023
1fb2de7
feat: remove group from contracts docs snippets for test
Aug 26, 2023
0bc70cb
feat: add describe to provider time test
Aug 26, 2023
419deb9
feat: add browser test env to all test files
Aug 26, 2023
ecab299
feat: rename test files
Aug 27, 2023
ee2166c
feat: remove duplicated test grpups
Aug 27, 2023
fbff4f2
feat: remove duplicated tyest
Aug 27, 2023
4404f6e
feat: alter test validation script
Aug 27, 2023
52c6100
feat: alter test commands and coumentation
Aug 28, 2023
c0a7ef7
feat: simplify test gh workflow
Aug 28, 2023
8883afa
feat: update docs snippets links
Aug 28, 2023
6713725
feat: add support for @group
Aug 28, 2023
6774230
feat: lint fixes for check tests test
Aug 28, 2023
058e2c5
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 28, 2023
a65c9e9
feat: add built step to parallel test jobs
Aug 28, 2023
40b75f6
feat: remove support for custom tags in tsdoc
Aug 28, 2023
62a3a7c
feat: add ci setup to seperate test job
Aug 28, 2023
28e4edd
feat: reinstate ci test command
Aug 28, 2023
03a03a1
feat: remove test file paths from test comamnds
Aug 28, 2023
741bbfc
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 28, 2023
a541587
feat: rename provider snapshot test
Aug 29, 2023
d5cf553
feat: implement and skip browser tests
Aug 29, 2023
d7ef7c8
feat: add find PR step to test workflow
Aug 29, 2023
b50de5e
feat: add build step to test workflow
Aug 29, 2023
5f0ff54
feat: add correct workflow download to test runs
Aug 29, 2023
0549bbe
Merge branch 'master' of https://github.com/FuelLabs/fuels-ts into db…
Aug 30, 2023
fca23cf
feat: remove browser or node package
Aug 30, 2023
07f840c
feat: add environmennt to transaction response test
Aug 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/grumpy-wolves-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
124 changes: 105 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
doc-folder-path: "apps/docs/src"

test:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -34,37 +34,123 @@ jobs:
- name: Lint
run: pnpm lint

- name: Validate tests
run: pnpm test:validate

test-node:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3

- name: CI Setup
uses: ./.github/actions/ci-setup

- name: Build
run: pnpm build

- name: Run Node Tests
run: pnpm ci:test-node

- name: Upload Node Coverage
uses: actions/upload-artifact@v2
with:
name: node
path: coverage/environments/node

test-browser:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3

- name: CI Setup
uses: ./.github/actions/ci-setup

- name: Build
run: pnpm build

- name: Run Browser Tests
run: pnpm ci:test-browser

- name: Upload Browser Coverage
uses: actions/upload-artifact@v2
with:
name: browser
path: coverage/environments/browser

test:
runs-on: ubuntu-latest
needs: [test-node, test-browser]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: CI Setup
uses: ./.github/actions/ci-setup

- name: Build
run: pnpm build

- name: Generate Coverage Directory
run: mkdir -p coverage/environments

- name: Download Coverage for Browser Tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: test.yaml
name: browser
path: coverage/environments

- name: Download Coverage for Node Tests
uses: dawidd6/action-download-artifact@v2
with:
workflow: test.yaml
name: node
path: coverage/environments

- name: Merge Coverage
run: pnpm test:merge-coverage && pnpm test:report-coverage

- name: Find PR Number
uses: jwalton/gh-find-current-pr@v1
id: findPr

- name: Run tests and collect coverage
if: ${{ !steps.findPr.outputs.number }}
run: pnpm ci:test -- --json --coverage --testLocationInResults --outputFile=report.master.json

- name: Upload coverage to Github artifacts
- name: Upload Coverage Artifact
uses: actions/upload-artifact@v3
if: ${{ !steps.findPr.outputs.number }}
with:
name: coverage-reports
path: report.master.json
name: coverage-master
path: coverage/report

- name: Download coverage artifact
- name: Download Coverage Artifact
uses: dawidd6/action-download-artifact@v2
if: ${{ steps.findPr.outputs.number }}
# TODO: Remove PR != check once #1182 has been merged
if: ${{ (steps.findPr.outputs.number) && (steps.findPr.outputs.number != 1182)}}
with:
workflow: test.yaml
branch: master
name: coverage-reports
path: coverage-reports
name: coverage-master
path: coverage-master

# TODO: Delete once #1182 has been merged
- name: Download coverage artifact (temporary)
uses: dawidd6/action-download-artifact@v2
if: ${{ (steps.findPr.outputs.number) && (steps.findPr.outputs.number == 1182)}}
with:
workflow: test.yaml
run_id: 5940564903
name: coverage-master
path: coverage-master

- name: Run tests and post reports to PR
uses: ArtiomTr/jest-coverage-report-action@v2
- name: Report Coverage
uses: romeovs/lcov-reporter-action@v0.3.1
if: ${{ steps.findPr.outputs.number }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
package-manager: pnpm
annotations: failed-tests
test-script: pnpm ci:test
prnumber: ${{ steps.findPr.outputs.number }}
base-coverage-file: coverage-reports/report.master.json
lcov-file: coverage/report/lcov.info
lcov-base: coverage-master/lcov.info
delete-old-comments: true
title: "Coverage Report"
11 changes: 11 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"include": ["packages/**/*.ts", "apps/docs-snippets/**/*.ts"],
"exclude": [
"/dist/",
"/apps/demo-nextjs",
"/apps/demo-react-cra",
"/dist/demo-react-vite"
]
}
16 changes: 9 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,22 @@ And then run the tests in another terminal tab:
# run all tests
pnpm test

# run tests while passing other flags to sub-program
pnpm test -- --coverage --my-other-flag
# run environment specific tests
pnpm test:node
pnpm test:browser

# run tests for a specific package
pnpm test packages/my-desired-package

# run tests for a specific file
pnpm test packages/my-desired-package/src/my.test.ts
# run all tests and generate merged coverage
pnpm test:coverage
```

Or if you want to start a local Fuel-Core node and run all tests serially you can do:

```sh
pnpm ci:test

# or environment specific
pnpm ci:test-node
pnpm ci:test-browser
```

This will run `node:run`, `test` and then `node:clean`
Expand Down
4 changes: 4 additions & 0 deletions apps/demo-typegen/src/demo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
import { DemoContractAbi__factory } from './generated-types';
import bytecode from './generated-types/DemoContractAbi.hex';

/**
* @group browser

Check warning on line 11 in apps/demo-typegen/src/demo.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
* @group node

Check warning on line 12 in apps/demo-typegen/src/demo.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
*/
describe('ExampleContract', () => {
it('should return the input', async () => {
const provider = new Provider('http://127.0.0.1:4000/graphql');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser

Check warning on line 8 in apps/docs-snippets/src/guide/contracts/call-parameters.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
* @group node

Check warning on line 9 in apps/docs-snippets/src/guide/contracts/call-parameters.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser

Check warning on line 8 in apps/docs-snippets/src/guide/contracts/calls-with-different-wallets.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
* @group node

Check warning on line 9 in apps/docs-snippets/src/guide/contracts/calls-with-different-wallets.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
*/
describe(__filename, () => {
let deployedContract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { getSnippetProjectArtifacts, SnippetProjectEnum } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser

Check warning on line 8 in apps/docs-snippets/src/guide/contracts/configurable-constants.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
* @group node

Check warning on line 9 in apps/docs-snippets/src/guide/contracts/configurable-constants.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
*/
describe(__filename, () => {
let wallet: WalletUnlocked;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser

Check warning on line 8 in apps/docs-snippets/src/guide/contracts/contract-balance.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
* @group node

Check warning on line 9 in apps/docs-snippets/src/guide/contracts/contract-balance.test.ts

View workflow job for this annotation

GitHub Actions / build

tsdoc-undefined-tag: The TSDoc tag "@group" is not defined in this configuration
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BaseAssetId } from 'fuels';
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { join } from 'path';
import { SnippetProjectEnum } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let PRIVATE_KEY: string;
let projectsPath: string;
Expand Down
4 changes: 4 additions & 0 deletions apps/docs-snippets/src/guide/contracts/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import type { Contract } from 'fuels';
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BN, ContractFactory } from 'fuels';
import { getSnippetProjectArtifacts, SnippetProjectEnum } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let wallet: WalletUnlocked;

Expand Down
4 changes: 4 additions & 0 deletions apps/docs-snippets/src/guide/contracts/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BN } from 'fuels';
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { ContractFactory, Contract } from 'fuels';
import { SnippetProjectEnum, getSnippetProjectArtifacts } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let contract: Contract;
let contractId: AbstractAddress;
Expand Down
4 changes: 4 additions & 0 deletions apps/docs-snippets/src/guide/contracts/multicalls.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BaseAssetId, BN, ContractFactory } from 'fuels';
import { getSnippetProjectArtifacts, SnippetProjectEnum } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let echoContract: Contract;
let counterContract: Contract;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { BaseAssetId, Wallet, BN } from 'fuels';
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
it('should successfully simulate contract call with forwarded amount', async () => {
const contract = await createAndDeployContractFromProject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BN } from 'fuels';
import { SnippetProjectEnum } from '../../../projects';
import { createAndDeployContractFromProject } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let contract: Contract;

Expand Down
4 changes: 4 additions & 0 deletions apps/docs-snippets/src/guide/predicates/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { FUEL_NETWORK_URL, Provider, Predicate } from 'fuels';

import { SnippetProjectEnum, getSnippetProjectArtifacts } from '../../../projects';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
const { abiContents: jsonAbi, binHexlified: binary } = getSnippetProjectArtifacts(
SnippetProjectEnum.RETURN_TRUE_PREDICATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { WalletUnlocked, Predicate, BaseAssetId, BN, getRandomB256 } from 'fuels
import { SnippetProjectEnum, getSnippetProjectArtifacts } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let wallet: WalletUnlocked;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { WalletUnlocked, FUEL_NETWORK_URL, Provider, Predicate, BN, getRandomB25
import { SnippetProjectEnum, getSnippetProjectArtifacts } from '../../../projects';
import { getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let walletWithFunds: WalletUnlocked;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import {
import { SnippetProjectEnum, getSnippetProjectArtifacts } from '../../../projects';
import { defaultTxParams, getTestWallet } from '../../utils';

/**
* @group browser
* @group node
*/
describe(__filename, () => {
let wallet: WalletUnlocked;
let contract: Contract;
Expand Down
Loading
Loading