|
| 1 | +name: Bug Report |
| 2 | +description: I think I've found a bug in Jasmine |
| 3 | +labels: ["unconfirmed bug"] |
| 4 | +body: |
| 5 | + - type: markdown |
| 6 | + attributes: |
| 7 | + value: | |
| 8 | + Thanks for taking the time to report a bug. Please follow these steps first. |
| 9 | +
|
| 10 | + ## Troubleshooting |
| 11 | + Please take the time to rule out issues with your code or third party libraries before filing a bug report. If you are reporting an error, try to determine whether the error is coming from Jasmine, another library, or your own code. |
| 12 | +
|
| 13 | + Check the [FAQ](https://jasmine.github.io/pages/faq.html) and any other relevant [documentation](https://jasmine.github.io/pages/docs_home.html) to see if your issue has already been addressed. |
| 14 | +
|
| 15 | + ## Special troubleshooting steps for asynchronous scenarios |
| 16 | + If the issue has to do with testing asynchronous code, please read the [async tutorial](https://jasmine.github.io/tutorials/async) and the async section of the FAQ. In particular, check for the following common errors: |
| 17 | +
|
| 18 | + * Are you trying to write a synchronous test for asynchronous code? |
| 19 | + * Does the test signal completion before the code under test finishes? |
| 20 | + * Do expectations run before the code that they're trying to verify? |
| 21 | +
|
| 22 | + ## Try the latest version of Jasmine |
| 23 | + If at all possible, upgrade to the latest versions of `jasmine-core` and any other relevant packages (e.g. `jasmine`, `jasmine-browser-runner`). If you can't do that, please check the [release notes](https://github.com/jasmine/jasmine/tree/main/release_notes) for all newer versions to make sure that the bug hasn't already been fixed. |
| 24 | +
|
| 25 | + ## Put together a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) |
| 26 | + Please help us help you by creating a minimal but complete setup that demonstrates the problem. Remove any code and libraries that aren't absolutely necessary, but make sure it doesn't depend on any code you haven't included. In many cases a simple code snippet is enough. In cases involving external libraries, *especially* Karma or Angular, we're likely to need a runable Git repository or jsbin/stackblitz/etc. |
| 27 | +
|
| 28 | + **If we can't reproduce it, we can't fix it. Bug reports without a minimal, reproducible example are very likely to be closed.** |
| 29 | +
|
| 30 | + - type: textarea |
| 31 | + id: steps-to-reproduce |
| 32 | + attributes: |
| 33 | + label: Steps to Reproduce |
| 34 | + placeholder: | |
| 35 | + Example steps: |
| 36 | + 1. Paste the example code below into `mySpec.js`. |
| 37 | + 2. Run `npx jasmine@<some version> mySpec.js` |
| 38 | + validations: |
| 39 | + required: true |
| 40 | + - type: textarea |
| 41 | + id: expected-behavior |
| 42 | + attributes: |
| 43 | + label: Expected Behavior |
| 44 | + description: What do you think should have happened? |
| 45 | + validations: |
| 46 | + required: true |
| 47 | + - type: textarea |
| 48 | + id: actual-behavior |
| 49 | + attributes: |
| 50 | + label: Actual Behavior |
| 51 | + description: What happened instead? |
| 52 | + validations: |
| 53 | + required: true |
| 54 | + - type: textarea |
| 55 | + id: code-sample |
| 56 | + attributes: |
| 57 | + label: Example code that reproduces the problem |
| 58 | + description: Please include either a code snippet that reproduces the problem or a link to a repository or jsbin/stackblitz/etc containing a minimal, reproducible example as described above. |
| 59 | + render: JavaScript |
| 60 | + validations: |
| 61 | + required: true |
| 62 | + - type: textarea |
| 63 | + id: possible-solution |
| 64 | + attributes: |
| 65 | + label: Possible Solution |
| 66 | + description: This is optional, but if you have an idea for how to fix the bug we'd like to hear it. |
| 67 | + - type: textarea |
| 68 | + id: context |
| 69 | + attributes: |
| 70 | + label: Context |
| 71 | + description: How has this issue affected you? What are you trying to accomplish? By providing context, you can help us come up with a solution that is most useful in the real world. |
| 72 | + - type: input |
| 73 | + id: jasmine-core-version |
| 74 | + attributes: |
| 75 | + label: jasmine-core version |
| 76 | + validations: |
| 77 | + required: true |
| 78 | + - type: dropdown |
| 79 | + id: repro-with-latest-core |
| 80 | + attributes: |
| 81 | + label: Does the problem occur with the latest version of jasmine-core? |
| 82 | + options: |
| 83 | + - "Yes" |
| 84 | + - "No" |
| 85 | + - I haven't tried |
| 86 | + - I'm stuck on an older version |
| 87 | + validations: |
| 88 | + required: true |
| 89 | + - type: textarea |
| 90 | + id: other-versions |
| 91 | + attributes: |
| 92 | + label: Versions of other relevant packages |
| 93 | + placeholder: | |
| 94 | + jasmine-browser-runner 1.2.0 |
| 95 | + fancy-reporter 132.4.8 |
| 96 | + - type: input |
| 97 | + id: browser-or-node-version |
| 98 | + attributes: |
| 99 | + label: Node.js or browser version |
| 100 | + placeholder: E.g. "node 16.2.0" or "Safari 15" |
| 101 | + validations: |
| 102 | + required: true |
| 103 | + - type: input |
| 104 | + id: os |
| 105 | + attributes: |
| 106 | + label: Operating System |
| 107 | + placeholder: E.g. "Windows 10", "MacOS 12.5", "MCC Interim Linux 0.99.p8" |
| 108 | + validations: |
| 109 | + required: true |
0 commit comments