Skip to content

Commit

Permalink
Reproduce issue
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Nov 9, 2021
1 parent a739756 commit 9240dcd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 92 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
transform: {
'^.+\\.vue$': 'vue-jest'
},
transformIgnorePatterns: ['/node_modules/(?!@ionic/vue|@ionic/vue-router)']
transformIgnorePatterns: ['/node_modules/(?!@ionic/core|@ionic/vue|@ionic/vue-router|@stencil/core|ionicons)']
}
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"@capacitor/haptics": "1.1.3",
"@capacitor/keyboard": "1.1.3",
"@capacitor/status-bar": "1.0.6",
"@ionic/vue": "^5.4.0",
"@ionic/vue-router": "^5.4.0",
"@ionic/vue": "^6.0.0-rc.2",
"@ionic/vue-router": "^6.0.0-rc.2",
"core-js": "^3.6.5",
"vue": "^3.2.1",
"vue-router": "^4.0.0-0"
Expand Down
67 changes: 8 additions & 59 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,68 +1,17 @@
<template>
<ion-page>
<ion-header :translucent="true">
<ion-toolbar>
<ion-title>Blank</ion-title>
</ion-toolbar>
</ion-header>

<ion-content :fullscreen="true">
<ion-header collapse="condense">
<ion-toolbar>
<ion-title size="large">Blank</ion-title>
</ion-toolbar>
</ion-header>

<div id="container">
<strong>Ready to create an app?</strong>
<p>Start with Ionic <a target="_blank" rel="noopener noreferrer" href="https://ionicframework.com/docs/components">UI Components</a></p>
</div>
</ion-content>
</ion-page>
<div>
Ready to create an app?
<ion-input />
</div>
</template>

<script lang="ts">
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/vue';
<script>
import { defineComponent } from 'vue';
import { IonInput } from '@ionic/vue';
export default defineComponent({
name: 'Home',
components: {
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar
}
IonInput,
},
});
</script>

<style scoped>
#container {
text-align: center;
position: absolute;
left: 0;
right: 0;
top: 50%;
transform: translateY(-50%);
}
#container strong {
font-size: 20px;
line-height: 26px;
}
#container p {
font-size: 16px;
line-height: 22px;
color: #8c8c8c;
margin: 0;
}
#container a {
text-decoration: none;
}
</style>
4 changes: 2 additions & 2 deletions tests/unit/example.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { mount } from '@vue/test-utils'
import { shallowMount } from '@vue/test-utils'
import Home from '@/views/Home.vue'

describe('Home.vue', () => {
it('renders home vue', () => {
const wrapper = mount(Home)
const wrapper = shallowMount(Home)
expect(wrapper.text()).toMatch('Ready to create an app?')
})
})

0 comments on commit 9240dcd

Please sign in to comment.