Skip to content

Commit

Permalink
fix: patching typo in starter_preset/typescript combination (#57)
Browse files Browse the repository at this point in the history
* fix: patching typo in starter preset jest tests
* chore: removing redundant test variations
  • Loading branch information
aorumbayev authored Jan 3, 2024
1 parent fdc5b17 commit 9c58809
Show file tree
Hide file tree
Showing 202 changed files with 15 additions and 6,133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ describe('{{ contract_name.split('_')|join(' ') }} contract', () => {
},
algod,
)
{%- if preset_name == 'starter' %}
await client.deploy({
onSchemaBreak: 'append',
onUpdate: 'append',
})
{%- elif preset_name == 'production' %}
await client.deploy({
allowDelete: true,
allowUpdate: true,
onSchemaBreak: 'replace',
onUpdate: 'update',
})
{% endif %}
return { client }
}

Expand Down
3 changes: 3 additions & 0 deletions tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def get_questions_from_copier_yaml(
"use_python_pip_audit",
"use_dispenser",
"use_pre_commit",
"use_python_black",
"use_python_mypy",
"python_linter",
# this also needs deployment_language set to typescript
# and is already tested via the typescript tests
"use_typescript_jest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ describe('hello world contract', () => {
algod,
)
await client.deploy({
allowDelete: true,
allowUpdate: true,
onSchemaBreak: 'replace',
onUpdate: 'update',
onSchemaBreak: 'append',
onUpdate: 'append',
})
return { client }
}
Expand Down
15 changes: 0 additions & 15 deletions tests_generated/test_python_linter-flake8/.algokit.toml

This file was deleted.

19 changes: 0 additions & 19 deletions tests_generated/test_python_linter-flake8/.copier-answers.yml

This file was deleted.

10 changes: 0 additions & 10 deletions tests_generated/test_python_linter-flake8/.editorconfig

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion tests_generated/test_python_linter-flake8/.env.template

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions tests_generated/test_python_linter-flake8/.flake8

This file was deleted.

1 change: 0 additions & 1 deletion tests_generated/test_python_linter-flake8/.gitattributes

This file was deleted.

178 changes: 0 additions & 178 deletions tests_generated/test_python_linter-flake8/.gitignore

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions tests_generated/test_python_linter-flake8/.vscode/extensions.json

This file was deleted.

38 changes: 0 additions & 38 deletions tests_generated/test_python_linter-flake8/.vscode/launch.json

This file was deleted.

Loading

0 comments on commit 9c58809

Please sign in to comment.