Merge pull request #10 from Safelite/feature/unit-test
Added one mock unit test
This commit is contained in:
commit
c7f983b523
5 changed files with 49 additions and 41 deletions
|
|
@ -26,50 +26,51 @@ resources:
|
||||||
type: github
|
type: github
|
||||||
name: Safelite/AzureDevOps
|
name: Safelite/AzureDevOps
|
||||||
endpoint: Safelite
|
endpoint: Safelite
|
||||||
ref: refs/tags/t5.3.3
|
ref: DigitalConsumer
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- group: Digital-Infrastructure
|
- group: Digital-Infrastructure
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
# PR's
|
# PR's
|
||||||
# - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
# - stage: TestPr
|
- stage: TestPr
|
||||||
# displayName: Run Unit Tests For PullRequest
|
displayName: Run Unit Tests For PullRequest
|
||||||
# jobs:
|
jobs:
|
||||||
# - template: templates/digital/vue-jest-run-unit-tests.yml@AzureDevOps
|
- template: templates/digital/vue-jest-run-unit-tests.yml@AzureDevOps
|
||||||
# parameters:
|
parameters:
|
||||||
# nodeContainer: node
|
nodeContainer: node
|
||||||
# npmLocation: $(Build.SourcesDirectory)
|
npmLocation: $(Build.SourcesDirectory)
|
||||||
# testResultsFile: junit.xml
|
testResultsFile: junit.xml
|
||||||
# summaryFileLocation: coverage/cobertura-coverage.xml
|
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
|
||||||
|
|
||||||
# Dev Build/Deploy
|
# Dev Build/Deploy
|
||||||
- stage: Dev
|
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
variables:
|
- stage: Dev
|
||||||
- group: FixMyGlassDev
|
variables:
|
||||||
jobs:
|
- group: FixMyGlassDev
|
||||||
- deployment: devBuildDeployment
|
jobs:
|
||||||
displayName: Build and Deploy FMG - Dev
|
- deployment: devBuildDeployment
|
||||||
environment: digitalCloud-dev
|
displayName: Build and Deploy FMG - Dev
|
||||||
container: node
|
environment: digitalCloud-dev
|
||||||
workspace:
|
container: node
|
||||||
clean: all
|
workspace:
|
||||||
strategy:
|
clean: all
|
||||||
runOnce:
|
strategy:
|
||||||
deploy:
|
runOnce:
|
||||||
steps:
|
deploy:
|
||||||
- checkout: self
|
steps:
|
||||||
clean: true
|
- checkout: self
|
||||||
- template: templates/digital/step-build-vue.yml@AzureDevOps
|
clean: true
|
||||||
parameters:
|
- template: templates/digital/step-build-vue.yml@AzureDevOps
|
||||||
buildOutputDir: dist
|
parameters:
|
||||||
- template: templates/digital/step-deploy-vue.yml@AzureDevOps
|
buildOutputDir: dist
|
||||||
parameters:
|
- template: templates/digital/step-deploy-vue.yml@AzureDevOps
|
||||||
artifactName: vueDist
|
parameters:
|
||||||
awsProfile: $(devDeploymentProfile)
|
artifactName: vueDist
|
||||||
deployBuckets:
|
awsProfile: $(devDeploymentProfile)
|
||||||
safelite-dev-fmg-us-east-1:
|
deployBuckets:
|
||||||
clearFolder: true
|
safelite-dev-fmg-us-east-1:
|
||||||
deployFolder: ''
|
clearFolder: true
|
||||||
region: us-east-1
|
deployFolder: ''
|
||||||
|
region: us-east-1
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"test:unit": "vue-cli-service test:unit --coverage --coverageReporters=cobertura --ci --watchAll=false"
|
"test:unit": "vue-cli-service test:unit --coverage --coverageReporters=cobertura --coverageReporters=html --ci --watchAll=false --reporters=jest-junit --reporters=default"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^5.1.1",
|
"bootstrap": "^5.1.1",
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HelloWorld from './components/HelloWorld.vue';
|
import HelloWorld from './components/HelloWorld.vue';
|
||||||
import HeaderNav from './components/HeaderNav';
|
import HeaderNav from '@/components/HeaderNav/HeaderNav.vue';
|
||||||
import Colors from './components/Colors';
|
import Colors from './components/Colors';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
7
src/components/HeaderNav/HeaderNav.spec.js
Normal file
7
src/components/HeaderNav/HeaderNav.spec.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
describe("HeaderNav.vue", () => {
|
||||||
|
|
||||||
|
test("Some Example Test == True", () => {
|
||||||
|
expect(true).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
})
|
||||||
Loading…
Reference in a new issue